summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-10-01 22:59:57 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-10-01 22:59:57 -0400
commit134c2ea799de69a2c81a9c8f4abf139fa28cc6f4 (patch)
tree1dd2ffa8b8f34cc909795717995426565cf74375
parent707a071c660438235b45ecb66a5610590594b9cb (diff)
downloadgtk+-134c2ea799de69a2c81a9c8f4abf139fa28cc6f4.tar.gz
file chooser: Don't select in the search entry
The stack calls gtk_widget_grab_focus on the last focus widget, which selects the text in the entry, so we need to make sure to move the focus there first to keep that from happening. https://bugzilla.gnome.org/show_bug.cgi?id=755931
-rw-r--r--gtk/gtkfilechooserwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index d286fcf086..1ea94b29bd 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -3128,11 +3128,11 @@ operation_mode_set_search (GtkFileChooserWidget *impl)
gtk_stack_set_visible_child_name (GTK_STACK (priv->browse_files_stack), "list");
}
+ gtk_entry_grab_focus_without_selecting (GTK_ENTRY (priv->search_entry));
gtk_stack_set_visible_child_name (GTK_STACK (priv->browse_header_stack), "search");
gtk_revealer_set_reveal_child (GTK_REVEALER (priv->browse_header_revealer), TRUE);
location_bar_update (impl);
search_setup_widgets (impl);
- gtk_entry_grab_focus_without_selecting (GTK_ENTRY (priv->search_entry));
gtk_widget_set_sensitive (priv->filter_combo, FALSE);
}