From bb574a9c2eb5d2976d254ee5e2541abd0affae90 Mon Sep 17 00:00:00 2001 From: compudj Date: Sun, 8 Aug 2004 15:36:28 +0000 Subject: [PATCH] select first for focus really select it now git-svn-id: http://ltt.polymtl.ca/svn@677 04897980-b3bd-0310-b5e0-8ef037075253 --- .../poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.34.1