[nautilus] slot: ensure the floating bar is hidden when loading finishes



commit 6c5b8dce2f5dadc473c52332b1209087ba3b0a73
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Sep 19 00:12:23 2012 -0400

    slot: ensure the floating bar is hidden when loading finishes
    
    Since in case of loading error we don't go through the same code path
    than in case of success; by using the connection to the end_loading
    signal, we can ensure the floating bar is removed also in case of error.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684218

 src/nautilus-window-slot.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index b57db28..0ed23bd 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -381,6 +381,14 @@ view_end_loading_cb (NautilusView       *view,
 		nautilus_window_slot_queue_reload (slot);
 		slot->needs_reload = FALSE;
 	}
+
+	if (slot->loading_timeout_id != 0) {
+		g_source_remove (slot->loading_timeout_id);
+		slot->loading_timeout_id = 0;
+	}
+
+	gtk_widget_hide (slot->floating_bar);
+	nautilus_floating_bar_cleanup_actions (NAUTILUS_FLOATING_BAR (slot->floating_bar));
 }
 
 static void



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