[gtk/matthiasc/for-master-2: 3/16] placessidebar: Change some initial property values



commit 85ad943832375e0605fd930bad0622742ddcba52
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 4 16:26:40 2020 +0100

    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",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]