diff options
author | Timm Bäder <mail@baedert.org> | 2017-02-08 09:00:29 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-03-31 09:50:39 +0200 |
commit | 43cdeee3c4a5486664e68394d08469c5a39770a3 (patch) | |
tree | 41a6e5acc22fcb59be2347a587ee5030a28fce40 /gtk/gtkflowbox.c | |
parent | 2bab2048f9c44a11b8bc5328abbe63b8c3cb084c (diff) | |
download | gtk+-43cdeee3c4a5486664e68394d08469c5a39770a3.tar.gz |
widget: Save pointer to focus child
Do the same thing GtkContainer does.
Diffstat (limited to 'gtk/gtkflowbox.c')
-rw-r--r-- | gtk/gtkflowbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c index 6bb31a0621..d443047c96 100644 --- a/gtk/gtkflowbox.c +++ b/gtk/gtkflowbox.c @@ -342,7 +342,7 @@ gtk_flow_box_child_focus (GtkWidget *widget, return FALSE; } - else if (gtk_container_get_focus_child (GTK_CONTAINER (widget)) != NULL) + else if (gtk_widget_get_focus_child (widget) != NULL) { /* Child has focus, always navigate inside it first */ if (gtk_widget_child_focus (child, direction)) @@ -3188,7 +3188,7 @@ gtk_flow_box_focus (GtkWidget *widget, return GTK_WIDGET_CLASS (gtk_flow_box_parent_class)->focus (widget, direction); } - focus_child = gtk_container_get_focus_child (GTK_CONTAINER (box)); + focus_child = gtk_widget_get_focus_child (widget); next_focus_child = NULL; if (focus_child != NULL) |