diff options
Diffstat (limited to 'gtk/gtkcontainer.c')
-rw-r--r-- | gtk/gtkcontainer.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c index 8968983886..206589248d 100644 --- a/gtk/gtkcontainer.c +++ b/gtk/gtkcontainer.c @@ -2114,10 +2114,9 @@ gtk_container_real_set_focus_child (GtkContainer *container, { focus_child = priv->focus_child; - while (GTK_IS_CONTAINER (focus_child) && gtk_container_get_focus_child (GTK_CONTAINER (focus_child))) - { - focus_child = gtk_container_get_focus_child (GTK_CONTAINER (focus_child)); - } + + while (gtk_widget_get_focus_child (focus_child)) + focus_child = gtk_widget_get_focus_child (focus_child); gtk_widget_translate_coordinates (focus_child, priv->focus_child, 0, 0, &x, &y); @@ -2310,7 +2309,7 @@ find_old_focus (GtkContainer *container, parent = _gtk_widget_get_parent (widget); - if (parent && (gtk_container_get_focus_child (GTK_CONTAINER (parent)) != widget)) + if (parent && (gtk_widget_get_focus_child (parent) != widget)) goto next; widget = parent; |