[nautilus] window: don't always make sidebar visible on new windows



commit 467c2eff5a227ab50223b93937e29835e06801c2
Author: António Fernandes <AntonioJPFernandes gmail com>
Date:   Sun Mar 15 23:52:34 2015 +0000

    window: don't always make sidebar visible on new windows
    
    We are setting the sidebar as visible in the ui definition and binding
    this visibility to the disabled-chrome property (inversely) to prevent
    the sidebar from being visible in the desktop. But this also makes
    the sidebar visible in all new windows, ignoring both the state of the
    "Sidebar" toggle in the app menu and the start-with-sidebar setting.
    
    Fix this by setting the sidebar as not visible in the ui definition and
    removing the binding. The sidebar will be made visible if appropriate
    in the nautilus-window-initialize-actions function.
    
    Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=746217

 src/nautilus-window.c  |    4 ----
 src/nautilus-window.ui |    2 +-
 2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 6ffea49..3749e72 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -2493,10 +2493,6 @@ nautilus_window_init (NautilusWindow *window)
        g_signal_connect_object (window->priv->notification_delete_undo, "clicked",
                                 G_CALLBACK (nautilus_window_on_notification_delete_undo_clicked), window, 0);
 
-       g_object_bind_property (window, "disable-chrome",
-                               window->priv->sidebar, "visible",
-                               G_BINDING_INVERT_BOOLEAN);
-
        window->priv->slots = NULL;
        window->priv->active_slot = NULL;
 
diff --git a/src/nautilus-window.ui b/src/nautilus-window.ui
index 105fe2a..5205ced 100644
--- a/src/nautilus-window.ui
+++ b/src/nautilus-window.ui
@@ -26,7 +26,7 @@
             <property name="hexpand">True</property>
             <child>
               <object class="GtkBox" id="sidebar">
-                <property name="visible">True</property>
+                <property name="visible">False</property>
                 <property name="orientation">vertical</property>
                 <property name="spacing">6</property>
                 <child>


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