[nautilus] Revert "window: Hide starred items in the sidebar if not items present"



commit b7b5b5e2a74ac935bfdaf6d7f35943029475e55f
Author: Carlos Soriano <csoriano1618 gmail com>
Date:   Mon Apr 9 08:51:38 2018 +0000

    Revert "window: Hide starred items in the sidebar if not items present"
    
    This reverts commit d08d4c8fe1282085d9a86f372cdeafbd632c35f7

 src/nautilus-window.c | 24 ------------------------
 1 file changed, 24 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index b2205002f..05fb98572 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -38,7 +38,6 @@
 #include "nautilus-window-slot.h"
 #include "nautilus-list-view.h"
 #include "nautilus-other-locations-window-slot.h"
-#include "nautilus-tag-manager.h"
 
 #include <eel/eel-debug.h>
 #include <eel/eel-gtk-extensions.h>
@@ -110,7 +109,6 @@ typedef struct
     int side_pane_width;
     GtkWidget *sidebar;            /* container for the GtkPlacesSidebar */
     GtkWidget *places_sidebar;     /* the actual GtkPlacesSidebar */
-    NautilusTagManager *starred_manager; /* For the starred sidbear item */
     GVolume *selected_volume;     /* the selected volume in the sidebar popup callback */
     GFile *selected_file;     /* the selected file in the sidebar popup callback */
 
@@ -1497,19 +1495,6 @@ places_sidebar_populate_popup_cb (GtkPlacesSidebar *sidebar,
     }
 }
 
-static void
-on_starred_changed (NautilusWindow *self)
-{
-    g_autoptr (GList) starred_files = NULL;
-    NautilusWindowPrivate *priv;
-
-    priv = nautilus_window_get_instance_private (self);
-
-    starred_files = nautilus_tag_manager_get_starred_files (priv->starred_manager);
-    gtk_places_sidebar_set_show_starred_location (GTK_PLACES_SIDEBAR (priv->places_sidebar),
-                                                  starred_files != NULL);
-}
-
 static void
 nautilus_window_set_up_sidebar (NautilusWindow *window)
 {
@@ -1542,12 +1527,6 @@ nautilus_window_set_up_sidebar (NautilusWindow *window)
                       G_CALLBACK (places_sidebar_populate_popup_cb), window);
     g_signal_connect (priv->places_sidebar, "unmount",
                       G_CALLBACK (places_sidebar_unmount_operation_cb), window);
-
-
-    priv->starred_manager = nautilus_tag_manager_get ();
-    g_signal_connect_swapped (priv->starred_manager, "starred-changed",
-                              G_CALLBACK (on_starred_changed), window);
-    on_starred_changed (window);
 }
 
 void
@@ -2577,9 +2556,6 @@ nautilus_window_finalize (GObject *object)
     /* nautilus_window_close() should have run */
     g_assert (priv->slots == NULL);
 
-    g_signal_handlers_disconnect_by_data (priv->starred_manager, window);
-    g_clear_object (&priv->starred_manager);
-
     G_OBJECT_CLASS (nautilus_window_parent_class)->finalize (object);
 }
 


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