mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 06:10:15 +00:00
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:
parent
4dafcf9c8b
commit
a453212591
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user