[gtk/BUG_gtktreeview_headers_focus_on_click_GTK3] GtkTreeviewColumn: don't focus-on-click header buttons
- From: Nelson Benítez León <nbenitez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/BUG_gtktreeview_headers_focus_on_click_GTK3] GtkTreeviewColumn: don't focus-on-click header buttons
- Date: Fri, 1 May 2020 02:40:35 +0000 (UTC)
commit 1a9aa675e4b8b45e76fb994174ba865bc962e873
Author: Nelson Benítez León <nbenitezl gmail com>
Date: Thu Apr 30 22:30:17 2020 -0400
GtkTreeviewColumn: don't focus-on-click header buttons
currently when mouse clicking on a column header
to sort it it is grabbing keyboard focus, this
should not happen, keyboard focus should remain
where it was before. This can be seen on the
GtkFileChooser widget, when having the keyboard
focus on the file list items and clicking on a
column header to sort it the keyboard focus is
now on the header.
gtk/gtktreeviewcolumn.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index e6eb3e6b41..3b5b4a08fc 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -820,6 +820,7 @@ gtk_tree_view_column_create_button (GtkTreeViewColumn *tree_column)
priv->button = gtk_button_new ();
g_object_ref_sink (priv->button);
+ gtk_widget_set_focus_on_click (priv->button, FALSE);
gtk_widget_show (priv->button);
gtk_widget_add_events (priv->button, GDK_POINTER_MOTION_MASK);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]