[nautilus] Remove old special-cased "select source folder"



commit 0cad983521edd476ece360236b6e71e4048bfc70
Author: Alexander Larsson <alexl redhat com>
Date:   Wed May 4 10:19:51 2011 +0200

    Remove old special-cased "select source folder"
    
    We now do this generically, so no need to special case it in the
    "go up" case.

 src/nautilus-window-slot.c |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index 46a12ea..2a7b41d 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -703,20 +703,16 @@ nautilus_window_slot_go_up (NautilusWindowSlot *slot,
 			    gboolean new_tab)
 {
 	GFile *parent;
-	GList *selection;
 	NautilusWindowOpenFlags flags;
 
 	if (slot->location == NULL) {
 		return;
 	}
-	
-	parent = g_file_get_parent (slot->location);
 
+	parent = g_file_get_parent (slot->location);
 	if (parent == NULL) {
 		return;
 	}
-	
-	selection = g_list_prepend (NULL, nautilus_file_get (slot->location));
 
 	flags = 0;
 	if (close_behind) {
@@ -726,12 +722,11 @@ nautilus_window_slot_go_up (NautilusWindowSlot *slot,
 		flags |= NAUTILUS_WINDOW_OPEN_FLAG_NEW_TAB;
 	}
 
-	nautilus_window_slot_open_location (slot, parent, 
+	nautilus_window_slot_open_location (slot, parent,
 					    flags,
-					    selection);
+					    NULL);
 
 	g_object_unref (parent);
-	g_list_free_full (selection, g_object_unref);
 }
 
 void



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