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:
@ -517,6 +517,7 @@ setup_search (GtkFileChooserDialog *dialog)
|
|||||||
GtkWidget *header;
|
GtkWidget *header;
|
||||||
|
|
||||||
button = gtk_toggle_button_new ();
|
button = gtk_toggle_button_new ();
|
||||||
|
gtk_button_set_focus_on_click (GTK_BUTTON (button), FALSE);
|
||||||
gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
|
gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
|
||||||
image = gtk_image_new_from_icon_name ("edit-find-symbolic", GTK_ICON_SIZE_MENU);
|
image = gtk_image_new_from_icon_name ("edit-find-symbolic", GTK_ICON_SIZE_MENU);
|
||||||
gtk_container_add (GTK_CONTAINER (button), image);
|
gtk_container_add (GTK_CONTAINER (button), image);
|
||||||
|
Reference in New Issue
Block a user