file chooser dialog: Make button not take focus
authorMatthias Clasen <mclasen@redhat.com>
Sat, 4 Jul 2015 04:02:55 +0000 (00:02 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 4 Jul 2015 04:29:27 +0000 (00:29 -0400)
Things work smoother, keynav-wise, if the search button does not
take focus on click.

gtk/gtkfilechooserdialog.c

index 5b1dfe9752234c238c151ce527a8e4df642dd175..dc41d3232f205e20e85641392ada7a9b7989481b 100644 (file)
@@ -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);