pidgin: c8d1b438: Make sure a widget can receive focus. Th...

sadrul at pidgin.im sadrul at pidgin.im
Sun May 18 17:26:12 EDT 2008


-----------------------------------------------------------------
Revision: c8d1b438c9ed75d9391197089e15edf6d81a040a
Ancestor: f824db1e8c1daf31945411fb916a834506ef1d85
Author: sadrul at pidgin.im
Date: 2008-05-18T21:22:38
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/c8d1b438c9ed75d9391197089e15edf6d81a040a

Modified files:
        finch/libgnt/gntbox.c

ChangeLog: 

Make sure a widget can receive focus. This is used when some widgets need
to be deactivated momentarily.

-------------- next part --------------
============================================================
--- finch/libgnt/gntbox.c	ec1857f6d84f79f15c18b9784f5b610b7923ca98
+++ finch/libgnt/gntbox.c	90cc33e4d8c0c5ace1ecccd74a908441df3531ce
@@ -272,7 +272,8 @@ find_next_focus(GntBox *box)
 			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);
 }


More information about the Commits mailing list