select first for focus really select it now
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sun, 8 Aug 2004 15:36:28 +0000 (15:36 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sun, 8 Aug 2004 15:36:28 +0000 (15:36 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@677 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c

index 1ea288a5dd14ad2568c4bf20d43a45c3fdaf648d..0d90d0a6bd1652c92874cfdaca60ece22517a3b1 100644 (file)
@@ -480,7 +480,7 @@ GtkWidget *viewer_container_focus(GtkWidget *container)
   GtkWidget *widget;
 
   widget = (GtkWidget*)g_object_get_data(G_OBJECT(container),
-                    "focused_viewer");
+                                         "focused_viewer");
 
   if(widget == NULL) {
     g_debug("no widget focused");
@@ -488,6 +488,9 @@ GtkWidget *viewer_container_focus(GtkWidget *container)
 
     if(children != NULL)
       widget = GTK_WIDGET(children->data);
+      g_object_set_data(G_OBJECT(container),
+                        "focused_viewer",
+                        widget);
   }
   
   return widget;
This page took 0.027394 seconds and 4 git commands to generate.