Make sure a widget can receive focus. This is used when some widgets need

Sun, 18 May 2008 21:22:38 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Sun, 18 May 2008 21:22:38 +0000
changeset 23223
29c3c6236a33
parent 23222
1dd9cdcdb1e6
child 23224
c85819bac33a
child 23227
f2d8240d3487

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);
 }

mercurial