[nautilus/gnome-3-20] window: use open flags for other locations view



commit 4738c1431b633a13c842daaba7a0d1926f02bc93
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

 configure.ac          |    2 +-
 src/nautilus-window.c |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6f19160..892c280 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,7 +5,7 @@ dnl ===========================================================================
 m4_define(glib_minver,                 2.45.7)
 m4_define(gnome_desktop_minver,        3.0.0)
 m4_define(pango_minver,                1.28.3)
-m4_define(gtk_minver,                  3.19.1)
+m4_define(gtk_minver,                  3.19.9)
 m4_define(xml_minver,                  2.7.8)
 m4_define(exif_minver,                 0.6.20)
 m4_define(exempi_minver,               2.1.0)
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]