diff options
author | Nelson Benítez León <nbenitezl@gmail.com> | 2020-04-30 22:59:08 -0400 |
---|---|---|
committer | Nelson Benítez León <nbenitezl@gmail.com> | 2020-04-30 22:59:08 -0400 |
commit | ba9b4f418df106b9cada5febeab06bf457a7b577 (patch) | |
tree | 521049b8e317ae36ece1d09319784e1a65c845d2 /gtk/gtktreeviewcolumn.c | |
parent | 57bf4ac59a101968e05d4c07c5a1594b24485aba (diff) | |
download | gtk+-ba9b4f418df106b9cada5febeab06bf457a7b577.tar.gz |
GtkTreeviewColumn: don't focus-on-click header buttonsBUG_gtktreeview_headers_focus_on_click_GTK4
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.
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r-- | gtk/gtktreeviewcolumn.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index 75dface61c..59fca58b16 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -851,6 +851,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); g_signal_connect (priv->button, "clicked", G_CALLBACK (gtk_tree_view_column_button_clicked), |