From 8e912b17cbd0f93aa171e7ee7ae51017e8022deb Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 30 Dec 2008 20:55:58 +0000 Subject: [PATCH] =?UTF-8?q?=20=20=20=20=20=20=20=20Bug=20558694=20?= =?UTF-8?q?=E2=80=93=20Paned=20window=20splitter=20keynav=20broken?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gtk/gtkpaned.c (get_child_panes): Don't add unrealized widgets. svn path=/trunk/; revision=22015 --- ChangeLog | 7 +++++++ gtk/gtkpaned.c | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 748546a8e9..3ac00a3b78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-12-30 Matthias Clasen + + Bug 558694 – Paned window splitter keynav broken + + * gtk/gtkpaned.c (get_child_panes): Don't add unrealized + widgets. + 2008-12-30 Matthias Clasen * gtk/gtkstyle.c: diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index b774937f51..6dfdd3fcdc 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -1888,6 +1888,9 @@ static void get_child_panes (GtkWidget *widget, GList **panes) { + if (!GTK_WIDGET_REALIZED (widget)) + return; + if (GTK_IS_PANED (widget)) { GtkPaned *paned = GTK_PANED (widget); @@ -1899,7 +1902,7 @@ get_child_panes (GtkWidget *widget, else if (GTK_IS_CONTAINER (widget)) { gtk_container_forall (GTK_CONTAINER (widget), - (GtkCallback)get_child_panes, panes); + (GtkCallback)get_child_panes, panes); } }