Bug 558694 – Paned window splitter keynav broken

* gtk/gtkpaned.c (get_child_panes): Don't add unrealized
        widgets.


svn path=/trunk/; revision=22015
This commit is contained in:
Matthias Clasen 2008-12-30 20:55:58 +00:00
parent 93517b616d
commit 8e912b17cb
2 changed files with 11 additions and 1 deletions

View File

@ -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:

View 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);
}
}