[nautilus/wip/cdavis/post-port-cleanups: 4/25] grid-view: Don't set `focusable`




commit 0c07c35396de8f4db17207c92355236ff26ff2fd
Author: Christopher Davis <christopherdavis gnome org>
Date:   Sat Jul 16 08:02:11 2022 -0400

    grid-view: Don't set `focusable`
    
    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.

 src/nautilus-grid-view.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/src/nautilus-grid-view.c b/src/nautilus-grid-view.c
index 8a0c8b4f2..b8e0d05f6 100644
--- a/src/nautilus-grid-view.c
+++ b/src/nautilus-grid-view.c
@@ -411,7 +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);
     gtk_widget_set_valign (widget, GTK_ALIGN_START);
 
     /* We don't use the built-in child activation feature for clicks because it


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]