]> Pileus Git - ~andy/gtk/commitdiff
Bug 558694 – Paned window splitter keynav broken
authorMatthias Clasen <matthiasc@src.gnome.org>
Tue, 30 Dec 2008 20:55:58 +0000 (20:55 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 30 Dec 2008 20:55:58 +0000 (20:55 +0000)
        * gtk/gtkpaned.c (get_child_panes): Don't add unrealized
        widgets.

svn path=/trunk/; revision=22015

ChangeLog
gtk/gtkpaned.c

index 748546a8e9a4d41a17da6e4c0a50b7057baf82fc..3ac00a3b7874672d73397edf23c06d2f81df8b74 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-12-30  Matthias Clasen  <mclasen@redhat.com>
+
+       Bug 558694 – Paned window splitter keynav broken
+
+       * gtk/gtkpaned.c (get_child_panes): Don't add unrealized
+       widgets.
+
 2008-12-30  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkstyle.c:
index b774937f516bde296a666edb8fa9fcc870c5cd8f..6dfdd3fcdc13a5c90d5b8d52dd455c489cf40c1a 100644 (file)
@@ -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);
     }
 }