mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-17 15:40:12 +00:00
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:
parent
f211031a9f
commit
99b17488dd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user