From 85ad943832375e0605fd930bad0622742ddcba52 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 4 Feb 2020 16:26:40 +0100 Subject: [PATCH] placessidebar: Change some initial property values Giving these properties the initial value that the file chooser wants for them avoids some calls to update_places in the setup code. --- gtk/gtkplacessidebar.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index 57883784aa..4b9a94d375 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -4032,6 +4032,10 @@ gtk_places_sidebar_init (GtkPlacesSidebar *sidebar) sidebar->cancellable = g_cancellable_new (); sidebar->show_trash = TRUE; + sidebar->local_only = TRUE; + sidebar->show_other_locations = TRUE; + sidebar->show_recent = TRUE; + sidebar->show_desktop = TRUE; create_volume_monitor (sidebar); @@ -4674,7 +4678,7 @@ gtk_places_sidebar_class_init (GtkPlacesSidebarClass *class) g_param_spec_boolean ("local-only", P_("Local Only"), P_("Whether the sidebar only includes local files"), - FALSE, + TRUE, GTK_PARAM_READWRITE); properties[PROP_SHOW_TRASH] = g_param_spec_boolean ("show-trash", @@ -4686,7 +4690,7 @@ gtk_places_sidebar_class_init (GtkPlacesSidebarClass *class) g_param_spec_boolean ("show-other-locations", P_("Show “Other locations”"), P_("Whether the sidebar includes an item to show external locations"), - FALSE, + TRUE, GTK_PARAM_READWRITE); properties[PROP_SHOW_STARRED_LOCATION] = g_param_spec_boolean ("show-starred-location", -- 2.30.2