treeviewcolumn: Use focusable when we mean it

The focusable property has taken over the role that
can-focus had in GTK 3.
This commit is contained in:
Matthias Clasen 2021-05-23 10:37:14 -04:00
parent eb61f0fc63
commit 281bb5e2c4

View File

@ -1096,7 +1096,7 @@ gtk_tree_view_column_mnemonic_activate (GtkWidget *widget,
if (priv->clickable)
g_signal_emit_by_name (priv->button, "clicked");
else if (gtk_widget_get_can_focus (priv->button))
else if (gtk_widget_get_focusable (priv->button))
gtk_widget_grab_focus (priv->button);
else
gtk_widget_grab_focus (priv->tree_view);