[gtk+] file chooser: Unset sidebar during search
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] file chooser: Unset sidebar during search
- Date: Wed, 28 Jan 2015 23:28:13 +0000 (UTC)
commit 99b17488dd4608d46e4b9fdc5e719d5b600ac837
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jan 28 18:26:42 2015 -0500
file chooser: Unset sidebar during search
It is a bit misleading to have one of the places in the sidebar
selected while in search mode, since the search is not relative
to any location. So, unset the sidebar selection when we enter
search mode.
gtk/gtkfilechooserwidget.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c
index d6c0202..bcfdb7c 100644
--- a/gtk/gtkfilechooserwidget.c
+++ b/gtk/gtkfilechooserwidget.c
@@ -2509,6 +2509,7 @@ operation_mode_set_search (GtkFileChooserWidget *impl)
search_setup_widgets (impl);
gtk_entry_grab_focus_without_selecting (GTK_ENTRY (priv->search_entry));
gtk_widget_set_sensitive (priv->filter_combo, FALSE);
+ gtk_places_sidebar_set_location (GTK_PLACES_SIDEBAR (priv->places_sidebar), NULL);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]