file chooser dialog: Make button not take focus

Things work smoother, keynav-wise, if the search button does not
take focus on click.
This commit is contained in:
Matthias Clasen 2015-07-04 00:02:55 -04:00
parent 4dafcf9c8b
commit a453212591

View 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);