+Tue Mar 5 19:19:19 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkwindow.c (gtk_window_set_focus): When setting
+ the focus to NULL, clear the existing focus chain so
+ that when we focus into the window again, we start
+ at the beginning. (Pointed out by Tim Janik.)
+
2002-03-06 James Henstridge <james@daa.com.au>
* configure.in: libpango is now called libpango-1.0
+Tue Mar 5 19:19:19 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkwindow.c (gtk_window_set_focus): When setting
+ the focus to NULL, clear the existing focus chain so
+ that when we focus into the window again, we start
+ at the beginning. (Pointed out by Tim Janik.)
+
2002-03-06 James Henstridge <james@daa.com.au>
* configure.in: libpango is now called libpango-1.0
+Tue Mar 5 19:19:19 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkwindow.c (gtk_window_set_focus): When setting
+ the focus to NULL, clear the existing focus chain so
+ that when we focus into the window again, we start
+ at the beginning. (Pointed out by Tim Janik.)
+
2002-03-06 James Henstridge <james@daa.com.au>
* configure.in: libpango is now called libpango-1.0
+Tue Mar 5 19:19:19 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkwindow.c (gtk_window_set_focus): When setting
+ the focus to NULL, clear the existing focus chain so
+ that when we focus into the window again, we start
+ at the beginning. (Pointed out by Tim Janik.)
+
2002-03-06 James Henstridge <james@daa.com.au>
* configure.in: libpango is now called libpango-1.0
+Tue Mar 5 19:19:19 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkwindow.c (gtk_window_set_focus): When setting
+ the focus to NULL, clear the existing focus chain so
+ that when we focus into the window again, we start
+ at the beginning. (Pointed out by Tim Janik.)
+
2002-03-06 James Henstridge <james@daa.com.au>
* configure.in: libpango is now called libpango-1.0
+Tue Mar 5 19:19:19 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkwindow.c (gtk_window_set_focus): When setting
+ the focus to NULL, clear the existing focus chain so
+ that when we focus into the window again, we start
+ at the beginning. (Pointed out by Tim Janik.)
+
2002-03-06 James Henstridge <james@daa.com.au>
* configure.in: libpango is now called libpango-1.0
+Tue Mar 5 19:19:19 2002 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkwindow.c (gtk_window_set_focus): When setting
+ the focus to NULL, clear the existing focus chain so
+ that when we focus into the window again, we start
+ at the beginning. (Pointed out by Tim Janik.)
+
2002-03-06 James Henstridge <james@daa.com.au>
* configure.in: libpango is now called libpango-1.0
if (focus)
gtk_widget_grab_focus (focus);
else
- _gtk_window_internal_set_focus (window, NULL);
+ {
+ /* Clear the existing focus chain, so that when we focus into
+ * the window again, we start at the beginnning.
+ */
+ GtkWidget *widget = window->focus_widget;
+ if (widget)
+ {
+ while (widget->parent)
+ {
+ widget = widget->parent;
+ gtk_container_set_focus_child (GTK_CONTAINER (widget), NULL);
+ }
+ }
+
+ _gtk_window_internal_set_focus (window, NULL);
+ }
}
void