summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserdialog.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-07-04 00:02:55 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-07-04 00:29:27 -0400
commita45321259176d7ccf4decc96226abd25a29fea67 (patch)
tree3dfeb0d79cedb9d5874dc41d8716c5cfa2109298 /gtk/gtkfilechooserdialog.c
parent4dafcf9c8b5eee57b2f698e32d3e62bf92be9796 (diff)
downloadgtk+-a45321259176d7ccf4decc96226abd25a29fea67.tar.gz
file chooser dialog: Make button not take focus
Things work smoother, keynav-wise, if the search button does not take focus on click.
Diffstat (limited to 'gtk/gtkfilechooserdialog.c')
-rw-r--r--gtk/gtkfilechooserdialog.c1
1 files changed, 1 insertions, 0 deletions
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);