[gtk] sidebarrow: Don't focus on click



commit 1e613485d3af9519db3f0ce8ab4e57c89a7a30b7
Author: Timm Bäder <mail baedert org>
Date:   Fri May 17 08:42:34 2019 +0200

    sidebarrow: Don't focus on click
    
    This is sometimes important, e.g. when saving in the filechooser. We
    don't want to move the focus out of the filename entry in that case.

 gtk/gtksidebarrow.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtksidebarrow.c b/gtk/gtksidebarrow.c
index 3623b67847..9b7fedd1ae 100644
--- a/gtk/gtksidebarrow.c
+++ b/gtk/gtksidebarrow.c
@@ -465,6 +465,8 @@ static void
 gtk_sidebar_row_init (GtkSidebarRow *self)
 {
   gtk_widget_init_template (GTK_WIDGET (self));
+
+  gtk_widget_set_focus_on_click (GTK_WIDGET (self), FALSE);
 }
 
 static void


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