Mercurial > pidgin
diff finch/libgnt/gntbox.c @ 22999:d03b32530854
Make sure a widget can receive focus. This is used when some widgets need
to be deactivated momentarily.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 18 May 2008 21:22:38 +0000 |
parents | 4c03275346a9 |
children | 73e88188a7d4 |
line wrap: on
line diff
--- 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); }