From a45321259176d7ccf4decc96226abd25a29fea67 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 4 Jul 2015 00:02:55 -0400 Subject: [PATCH] file chooser dialog: Make button not take focus Things work smoother, keynav-wise, if the search button does not take focus on click. --- gtk/gtkfilechooserdialog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c index 5b1dfe9752..dc41d3232f 100644 --- a/gtk/gtkfilechooserdialog.c +++ b/gtk/gtkfilechooserdialog.c @@ -517,6 +517,7 @@ setup_search (GtkFileChooserDialog *dialog) GtkWidget *header; button = gtk_toggle_button_new (); + gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE); gtk_widget_set_valign (button, GTK_ALIGN_CENTER); image = gtk_image_new_from_icon_name ("edit-find-symbolic", GTK_ICON_SIZE_MENU); gtk_container_add (GTK_CONTAINER (button), image);