Sun, 18 May 2008 21:22:38 +0000
Make sure a widget can receive focus. This is used when some widgets need
to be deactivated momentarily.
| finch/libgnt/gntbox.c | file | annotate | diff | comparison | revisions |
--- a/finch/libgnt/gntbox.c Sun May 18 20:26:14 2008 +0000 +++ b/finch/libgnt/gntbox.c Sun May 18 21:22:38 2008 +0000 @@ -272,7 +272,8 @@ box->active = iter->next->data; else if (box->focus) box->active = box->focus->data; - if (!GNT_WIDGET_IS_FLAG_SET(box->active, GNT_WIDGET_INVISIBLE)) + if (!GNT_WIDGET_IS_FLAG_SET(box->active, GNT_WIDGET_INVISIBLE) && + GNT_WIDGET_IS_FLAG_SET(box->active, GNT_WIDGET_CAN_TAKE_FOCUS)) break; } while (box->active != last); }