im.pidgin.pidgin: e8f945cbbdd235c0fb371834fddf396f568b672f
sadrul at pidgin.im
sadrul at pidgin.im
Mon Nov 26 00:45:44 EST 2007
-----------------------------------------------------------------
Revision: e8f945cbbdd235c0fb371834fddf396f568b672f
Ancestor: fb4562e25805935b7f84c12cc47a028a0dc25f3a
Author: sadrul at pidgin.im
Date: 2007-11-26T04:45:41
Branch: im.pidgin.pidgin
Modified files:
finch/libgnt/gntbox.c
ChangeLog:
Fix moving focus in an internal box.
-------------- next part --------------
============================================================
--- finch/libgnt/gntbox.c b301f26a8664fc4b494cd4a0f5ff3ead9ff4b269
+++ finch/libgnt/gntbox.c ec1857f6d84f79f15c18b9784f5b610b7923ca98
@@ -851,8 +851,14 @@ void gnt_box_give_focus_to_child(GntBox
void gnt_box_give_focus_to_child(GntBox *box, GntWidget *widget)
{
- GList *find = g_list_find(box->focus, widget);
- gpointer now = box->active;
+ GList *find;
+ gpointer now;
+
+ while (GNT_WIDGET(box)->parent)
+ box = GNT_BOX(GNT_WIDGET(box)->parent);
+
+ find = g_list_find(box->focus, widget);
+ now = box->active;
if (find)
box->active = widget;
if (now && now != box->active)
More information about the Commits
mailing list