qulogic/libgnt
Clone
Summary
Browse
Changes
Graph
Fix moving focus in an internal box.
2007-11-26, Sadrul Habib Chowdhury
e218d47842e0
Parents
9df6e14e18cf
Children
6175a275ef50
Fix moving focus in an internal box.
1 files changed, 8 insertions(+), 2 deletions(-)
+8
-2
gntbox.c
--- a/gntbox.c Fri Nov 23 11:05:43 2007 +0000
+++ b/gntbox.c Mon Nov 26 04:45:41 2007 +0000
@@ -851,8 +851,14 @@
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)