[nautilus/refactor: 12/26] window: remove useless method calls



commit 68e77be22eb9278fab5978378fbb685ee3c359c4
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Dec 23 19:09:01 2010 +0100

    window: remove useless method calls
    
    nautilus_window_slot_set_content_view_widget() is called afterwards,
    which in turn calls again _disconnect_view()

 src/nautilus-window-manage-views.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c
index f22312b..5fa8583 100644
--- a/src/nautilus-window-manage-views.c
+++ b/src/nautilus-window-manage-views.c
@@ -1409,9 +1409,6 @@ location_has_really_changed (NautilusWindowSlot *slot)
 		widget = nautilus_view_get_widget (slot->new_content_view);
 		/* Switch to the new content view. */
 		if (gtk_widget_get_parent (widget) == NULL) {
-			if (slot->content_view != NULL) {
-				nautilus_window_disconnect_content_view (window, slot->content_view);
-			}
 			nautilus_window_slot_set_content_view_widget (slot, slot->new_content_view);
 		}
 		g_object_unref (slot->new_content_view);
@@ -1822,7 +1819,6 @@ nautilus_window_report_view_failed (NautilusWindow *window,
 	fallback_load_location = NULL;
 	
 	if (view == slot->content_view) {
-		nautilus_window_disconnect_content_view (window, view);
                 nautilus_window_slot_set_content_view_widget (slot, NULL);
 
                 report_current_content_view_failure_to_user (slot);



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