summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Davis <christopherdavis@gnome.org>2022-07-16 08:02:11 -0400
committerAntónio Fernandes <antoniof@gnome.org>2022-07-16 20:02:20 +0100
commit5fe9df1a3906e707f59e3b2aafb16ac8b4d6c55d (patch)
treedb05a350870bb76229112f626a6dfd02e9198a9e
parent6f81f1b46f58af0c5d6a55882a157e72227d02ca (diff)
downloadnautilus-5fe9df1a3906e707f59e3b2aafb16ac8b4d6c55d.tar.gz
grid-view: Don't set `focusable`
The view can receive focus, which causes it to draw an unnecessary ring when focused and requires an extra focus step to get into the items. The view itself should not be focusable. This was set as a translation of `can-focus`, but the semantics are different, and you generally don't want to manually set `focusable` as the widgets set proper defaults.
-rw-r--r--src/nautilus-grid-view.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nautilus-grid-view.c b/src/nautilus-grid-view.c
index 1d91d1b92..74a80e1f5 100644
--- a/src/nautilus-grid-view.c
+++ b/src/nautilus-grid-view.c
@@ -411,8 +411,6 @@ create_view_ui (NautilusGridView *self)
g_signal_connect (factory, "unbind", G_CALLBACK (unbind_cell), self);
widget = gtk_grid_view_new (GTK_SELECTION_MODEL (model), factory);
- gtk_widget_set_focusable (widget, TRUE);
-
/* We don't use the built-in child activation feature for clicks because it
* doesn't fill all our needs nor does it match our expected behavior.