[nautilus] navigation-window: remove spinner code



commit b4f5d1a9eb4d1389a1c198bb16a28ca35bdf5f60
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Feb 11 10:15:24 2011 -0500

    navigation-window: remove spinner code

 src/nautilus-navigation-window.c |    4 ---
 src/nautilus-window-toolbars.c   |   54 --------------------------------------
 2 files changed, 0 insertions(+), 58 deletions(-)
---
diff --git a/src/nautilus-navigation-window.c b/src/nautilus-navigation-window.c
index e955cd6..c3b1c55 100644
--- a/src/nautilus-navigation-window.c
+++ b/src/nautilus-navigation-window.c
@@ -399,12 +399,8 @@ static void
 real_sync_allow_stop (NautilusWindow *window,
 		      NautilusWindowSlot *slot)
 {
-	NautilusNavigationWindow *navigation_window;
 	NautilusNotebook *notebook;
 
-	navigation_window = NAUTILUS_NAVIGATION_WINDOW (window);
-	nautilus_navigation_window_set_spinner_active (navigation_window, slot->allow_stop);
-
 	notebook = NAUTILUS_NOTEBOOK (NAUTILUS_NAVIGATION_WINDOW_PANE (slot->pane)->notebook);
 	nautilus_notebook_sync_loading (notebook, slot);
 }
diff --git a/src/nautilus-window-toolbars.c b/src/nautilus-window-toolbars.c
index 6f00bf0..4291681 100644
--- a/src/nautilus-window-toolbars.c
+++ b/src/nautilus-window-toolbars.c
@@ -46,60 +46,6 @@
 
 #define TOOLBAR_PATH_EXTENSION_ACTIONS "/Toolbar/Extra Buttons Placeholder/Extension Actions"
 
-void
-nautilus_navigation_window_set_spinner_active (NautilusNavigationWindow *window,
-					       gboolean allow)
-{
-	if (( window->details->spinner_active &&  allow) ||
-	    (!window->details->spinner_active && !allow)) {
-		return;
-	}
-
-	window->details->spinner_active = allow;
-	if (allow) {
-		gtk_widget_show (window->details->spinner);
-		gtk_spinner_start (GTK_SPINNER (window->details->spinner));
-	} else {
-		gtk_widget_hide (window->details->spinner);
-	}
-}
-
-void
-nautilus_navigation_window_activate_spinner (NautilusNavigationWindow *window)
-{
-	GtkToolItem *item;
-	GtkWidget *spinner;
-
-	if (window->details->spinner != NULL) {
-		return;
-	}
-
-	item = gtk_tool_item_new ();
-	gtk_widget_show (GTK_WIDGET (item));
-	gtk_tool_item_set_expand (item, TRUE);
-	gtk_toolbar_insert (GTK_TOOLBAR (window->details->toolbar),
-			    item, -1);
-
-	spinner = gtk_spinner_new ();
-	gtk_widget_show (GTK_WIDGET (spinner));
-
-	item = gtk_tool_item_new ();
-	gtk_container_add (GTK_CONTAINER (item), spinner);
-	gtk_widget_show (GTK_WIDGET (item));
-
-	gtk_toolbar_insert (GTK_TOOLBAR (window->details->toolbar),
-			    item, -1);
-
-	window->details->spinner = spinner;
-}
-
-void
-nautilus_navigation_window_initialize_toolbars (NautilusNavigationWindow *window)
-{
-	nautilus_navigation_window_activate_spinner (window);
-}
-
-
 static GList *
 get_extension_toolbar_items (NautilusNavigationWindow *window)
 {



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