From: Matthias Clasen Date: Tue, 4 Feb 2020 15:26:40 +0000 (+0100) Subject: placessidebar: Change some initial property values X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~106 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=85ad943832375e0605fd930bad0622742ddcba52;p=gtk4.git 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. --- 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",