[gtk+/wip/gbsneto/other-locations: 10/13] placessidebar: make Other Locations be selectable programatically



commit 1a52d9226ec61c24455beb6c4a6d314de5784137
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Jun 22 03:16:07 2015 -0300

    placessidebar: make Other Locations be selectable programatically

 gtk/gtkplacessidebar.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 6ea47c7..8cc42d3 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -1191,7 +1191,7 @@ update_places (GtkPlacesSidebar *sidebar)
 
       add_place (sidebar, PLACES_OTHER_LOCATIONS,
                  SECTION_OTHER_LOCATIONS,
-                 _("Other Locations"), icon, NULL,
+                 _("Other Locations"), icon, "other-locations://",
                  NULL, NULL, NULL, 0, _("Show other locations"));
 
       g_object_unref (icon);
@@ -2172,14 +2172,14 @@ open_row (GtkSidebarRow      *row,
                 "volume", &volume,
                 NULL);
 
-  if (uri != NULL)
+  if (place_type == PLACES_OTHER_LOCATIONS)
+    emit_show_other_locations (sidebar);
+  else if (uri != NULL)
     open_uri (sidebar, uri, open_flags);
   else if (place_type == PLACES_CONNECT_TO_SERVER)
     emit_show_connect_to_server (sidebar);
   else if (place_type == PLACES_ENTER_LOCATION)
     emit_show_enter_location (sidebar);
-  else if (place_type == PLACES_OTHER_LOCATIONS)
-    emit_show_other_locations (sidebar);
   else if (volume != NULL)
     open_volume (sidebar, volume, open_flags);
   else if (drive != NULL)


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