placessidebar: Change some initial property values
authorMatthias Clasen <mclasen@redhat.com>
Tue, 4 Feb 2020 15:26:40 +0000 (16:26 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 5 Feb 2020 06:01:47 +0000 (01:01 -0500)
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

index 57883784aa5fcffb228e8a36895813152bc5b058..4b9a94d375bdead7c366eab07ec40c43ff45fc32 100644 (file)
@@ -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",