From: compudj Date: Sun, 8 Aug 2004 15:36:28 +0000 (+0000) Subject: select first for focus really select it now X-Git-Tag: v0.12.20~2812 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bb574a9c2eb5d2976d254ee5e2541abd0affae90;p=lttv.git select first for focus really select it now git-svn-id: http://ltt.polymtl.ca/svn@677 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c index 1ea288a5..0d90d0a6 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c @@ -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;