[gtk/focusable-fixes: 5/5] treeviewcolumn: Use focusable when we mean it
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/focusable-fixes: 5/5] treeviewcolumn: Use focusable when we mean it
- Date: Sun, 23 May 2021 15:21:37 +0000 (UTC)
commit 281bb5e2c44db368a05a721351c24e119857aada
Author: Matthias Clasen <mclasen redhat com>
Date: Sun May 23 10:37:14 2021 -0400
treeviewcolumn: Use focusable when we mean it
The focusable property has taken over the role that
can-focus had in GTK 3.
gtk/gtktreeviewcolumn.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index 66ac2ad02e..4633cacc97 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]