summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2016-02-22 14:20:19 +0100
committerCarlos Soriano <csoriano@gnome.org>2016-02-23 16:46:18 +0100
commiteb725fc71e648a079b59ccbca510d9b71453848b (patch)
tree668b4f896fa17fdba43583b0f96e3b5039ba83b2
parent3b49286eb71627d48a40ab900abb3c0322cdd1a2 (diff)
downloadnautilus-eb725fc71e648a079b59ccbca510d9b71453848b.tar.gz
window: use open flags for other locations view
We weren't checking the open flags from the sidebar when the other locations was clicked. This was due to the sidebar not adding those flags to the signal. In a recent commit gtk+ added the missing flags, so now we can check for those in nautilus and open in the current view, in a tab or in a window accordingly. https://bugzilla.gnome.org/show_bug.cgi?id=754743
-rw-r--r--src/nautilus-window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 708226672..643d7a550 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -1034,13 +1034,14 @@ places_sidebar_show_error_message_cb (GtkPlacesSidebar *sidebar,
}
static void
-places_sidebar_show_other_locations (NautilusWindow *window)
+places_sidebar_show_other_locations (NautilusWindow *window,
+ GtkPlacesOpenFlags open_flags)
{
GFile *location;
location = g_file_new_for_uri ("other-locations:///");
- open_location_cb (window, location, GTK_PLACES_OPEN_NORMAL);
+ open_location_cb (window, location, open_flags);
g_object_unref (location);
}