treeexpander: Use focusable where we mean it

This does not fix keyboard activation for tree expanders,
but it is more correct than using can-focus.
This commit is contained in:
Matthias Clasen 2021-05-23 10:33:40 -04:00
parent 105b12f807
commit eb61f0fc63

View File

@ -311,7 +311,7 @@ gtk_tree_expander_focus (GtkWidget *widget,
if (gtk_widget_is_focus (widget))
return FALSE;
if (!gtk_widget_get_can_focus (widget))
if (!gtk_widget_get_focusable (widget))
return FALSE;
gtk_widget_grab_focus (widget);