diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2008-12-30 20:55:58 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2008-12-30 20:55:58 +0000 |
commit | 8e912b17cbd0f93aa171e7ee7ae51017e8022deb (patch) | |
tree | 87f8b2d57567a2bd489fdbefeeee6a751ca2db28 /gtk | |
parent | 93517b616d9e1167efff8edbf274630455db072c (diff) | |
download | gtk+-8e912b17cbd0f93aa171e7ee7ae51017e8022deb.tar.gz |
Bug 558694 – Paned window splitter keynav broken
* gtk/gtkpaned.c (get_child_panes): Don't add unrealized
widgets.
svn path=/trunk/; revision=22015
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkpaned.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); } } |