summaryrefslogtreecommitdiff
path: root/gtk/gtkcontainer.c
diff options
context:
space:
mode:
authorLars Hamann <lars@src.gnome.org>1998-06-02 19:32:33 +0000
committerLars Hamann <lars@src.gnome.org>1998-06-02 19:32:33 +0000
commit7c8ae8a5f5bbbd1f140f2daa3285f173da00085e (patch)
treedad0e3f63aadc2d65933e28dfb83e6bc60431cae /gtk/gtkcontainer.c
parent047e9fcf1a71e164ad204381f1df3d89d0a34a81 (diff)
downloadgtk+-7c8ae8a5f5bbbd1f140f2daa3285f173da00085e.tar.gz
reversed test sequence for GTK_WIDGET_CAN_FOCUS and GTK_IS_CONTAINER
Diffstat (limited to 'gtk/gtkcontainer.c')
-rw-r--r--gtk/gtkcontainer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index a905b1e69b..4595e7fcad 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -1044,16 +1044,16 @@ gtk_container_focus_move (GtkContainer *container,
}
else if (GTK_WIDGET_VISIBLE (child))
{
- if (GTK_WIDGET_CAN_FOCUS (child))
- {
- gtk_widget_grab_focus (child);
- return TRUE;
- }
- else if (GTK_IS_CONTAINER (child))
+ if (GTK_IS_CONTAINER (child))
{
if (gtk_container_focus (GTK_CONTAINER (child), direction))
return TRUE;
}
+ else if (GTK_WIDGET_CAN_FOCUS (child))
+ {
+ gtk_widget_grab_focus (child);
+ return TRUE;
+ }
}
}