[nautilus/wip/csoriano/zoomsv3: 5/11] window: use open flags for other locations view
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/csoriano/zoomsv3: 5/11] window: use open flags for other locations view
- Date: Tue, 23 Feb 2016 15:47:18 +0000 (UTC)
commit eb725fc71e648a079b59ccbca510d9b71453848b
Author: Carlos Soriano <csoriano gnome org>
Date: Mon Feb 22 14:20:19 2016 +0100
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
src/nautilus-window.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 7082266..643d7a5 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]