summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2011-05-04 10:19:51 +0200
committerCosimo Cecchi <cosimoc@gnome.org>2011-05-23 16:57:58 -0400
commit6a66bc78de706b3e39ac0eb3202bf585c7a4e9c7 (patch)
tree047ad0b775c1c846898e06ea680f20ce14d78b31
parent2b006f84a06633778e11755e579fafcecbb1b36b (diff)
downloadnautilus-6a66bc78de706b3e39ac0eb3202bf585c7a4e9c7.tar.gz
Remove old special-cased "select source folder"
We now do this generically, so no need to special case it in the "go up" case.
-rw-r--r--src/nautilus-window-slot.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index 46a12ea04..2a7b41d93 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