[nautilus/places-sidebar] Don't set the trash state in the places sidebar



commit c02ca973de39848dd1a4e70317790b055ac15873
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Jan 10 15:11:40 2013 -0600

    Don't set the trash state in the places sidebar
    
    It does trash state monitoring on its own now.
    
    Signed-off-by: Federico Mena Quintero <federico gnome org>

 src/nautilus-window.c |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 697079f..97587b0 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -668,19 +668,6 @@ window_loading_uri_cb (NautilusWindow *window,
 	}
 }
 
-/* Callback used when the trash state changes; we update the places sidebar to reflect this */
-static void
-trash_state_changed_cb (NautilusTrashMonitor *trash_monitor,
-			gboolean              state,
-			gpointer              user_data)
-{
-	NautilusWindow *window = NAUTILUS_WINDOW (user_data);
-
-	if (window->details->places_sidebar)
-		gtk_places_sidebar_set_trash_is_full (GTK_PLACES_SIDEBAR (window->details->places_sidebar),
-						      !nautilus_trash_monitor_is_empty ());
-}
-
 /* Callback used in the "open in new tab" menu item from the places sidebar */
 static void
 open_shortcut_in_new_tab_cb (GtkMenuItem *item,
@@ -809,10 +796,6 @@ nautilus_window_set_up_sidebar (NautilusWindow *window)
 	window->details->places_sidebar = gtk_places_sidebar_new ();
 	gtk_places_sidebar_set_accept_uri_drops (GTK_PLACES_SIDEBAR (window->details->places_sidebar), TRUE);
 
-	gtk_places_sidebar_set_show_trash (GTK_PLACES_SIDEBAR (window->details->places_sidebar), TRUE);
-	g_signal_connect_object (nautilus_trash_monitor_get (), "trash_state_changed",
-				 G_CALLBACK (trash_state_changed_cb), window, 0);
-
 	g_signal_connect (window->details->places_sidebar, "open-location",
 			  G_CALLBACK (places_sidebar_open_location_cb), window);
 	g_signal_connect (window->details->places_sidebar, "show-error-message",



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