From: Matthias Clasen Date: Sat, 4 Jul 2015 04:02:55 +0000 (-0400) Subject: file chooser dialog: Make button not take focus X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~24^2~9156 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a45321259176d7ccf4decc96226abd25a29fea67;p=gtk4.git file chooser dialog: Make button not take focus Things work smoother, keynav-wise, if the search button does not take focus on click. --- 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);