summaryrefslogtreecommitdiff
path: root/gtk/gtklistbox.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-01-16 15:12:24 +0100
committerTimm Bäder <mail@baedert.org>2018-01-17 21:57:19 +0100
commitcb0d2616ff78b4618334edba61d6d97dda767d23 (patch)
tree2b911f67d156c8cbd56947899219005de943d4fb /gtk/gtklistbox.c
parent229ef9d7767906a05dab96a826c8813cd311067b (diff)
downloadgtk+-cb0d2616ff78b4618334edba61d6d97dda767d23.tar.gz
listbox: Don't assume that row child == focus widget
With widgets supporting child widgets and custom GtkListBoxRow subclasses, this might not be true.
Diffstat (limited to 'gtk/gtklistbox.c')
-rw-r--r--gtk/gtklistbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index f710bf1251..32135f3214 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -3007,7 +3007,7 @@ gtk_list_box_row_focus (GtkWidget *widget,
else if (gtk_widget_get_focus_child (widget) != NULL)
{
/* Child has focus, always navigate inside it first */
- if (gtk_widget_child_focus (child, direction))
+ if (gtk_widget_child_focus (gtk_widget_get_focus_child (widget), direction))
return TRUE;
/* If exiting child container to the left, select row */