Mercurial > pidgin.yaz
changeset 23001: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 | d678dbea81a4 |
children | 89b3a0a52b53 f11fc3fb5b8c |
files | finch/libgnt/gntbox.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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); }