summaryrefslogtreecommitdiff
path: root/gtk/gtkflowbox.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-02-08 09:00:29 +0100
committerTimm Bäder <mail@baedert.org>2017-03-31 09:50:39 +0200
commit43cdeee3c4a5486664e68394d08469c5a39770a3 (patch)
tree41a6e5acc22fcb59be2347a587ee5030a28fce40 /gtk/gtkflowbox.c
parent2bab2048f9c44a11b8bc5328abbe63b8c3cb084c (diff)
downloadgtk+-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.c4
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)