summaryrefslogtreecommitdiff
path: root/gtk/gtkflowbox.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-05-23 10:25:11 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-05-23 11:20:00 -0400
commit882893259dd650ea138a845a959b19fd791f6838 (patch)
treef268081c4032522230e47166df2baab665314e05 /gtk/gtkflowbox.c
parent052917a67d7cd224c0a0204fee080737de653448 (diff)
downloadgtk+-882893259dd650ea138a845a959b19fd791f6838.tar.gz
floxbox: Fix focus navigation
We want to find focusable children, so we need to look at the focusable property, not at can-focus. This is a change from GTK 3, where can-focus was the correct property to look at.
Diffstat (limited to 'gtk/gtkflowbox.c')
-rw-r--r--gtk/gtkflowbox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index d994e69d08..188b76c562 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -337,8 +337,8 @@ gtk_flow_box_child_focus (GtkWidget *widget,
GtkWidget *child = priv->child;
gboolean had_focus = FALSE;
- /* Without "can-focus" flag try to pass the focus to the child immediately */
- if (!gtk_widget_get_can_focus (widget))
+ /* Without "focusable" flag try to pass the focus to the child immediately */
+ if (!gtk_widget_get_focusable (widget))
{
if (child)
{
@@ -3383,10 +3383,10 @@ gtk_flow_box_move_cursor (GtkFlowBox *box,
return TRUE;
}
- /* If the child has its "can-focus" property set to FALSE then it will
+ /* If the child has its "focusable" property set to FALSE then it will
* not grab the focus. We must pass the focus to its child directly.
*/
- if (!gtk_widget_get_can_focus (GTK_WIDGET (child)))
+ if (!gtk_widget_get_focusable (GTK_WIDGET (child)))
{
GtkWidget *subchild;