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.
This commit is contained in:
Matthias Clasen 2015-01-28 18:26:42 -05:00
parent f211031a9f
commit 99b17488dd

View File

@ -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