[gtk+] gtkplacesview: use location instead of the enclosing one



commit 17a4bd51bb0975dada19c64324a5e77026570467
Author: Carlos Soriano <csoriano gnome org>
Date:   Mon Feb 22 16:18:21 2016 +0100

    gtkplacesview: use location instead of the enclosing one
    
    We were using the enclosing location when connecting to a server, so
    for instance if  we were connecting to ftp://test/test it would actually
    open ftp://test/ instead of the full path.
    
    To fix it, use the full location when emitting the open location signal.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756659

 gtk/gtkplacesview.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c
index 9588877..8ab4621 100644
--- a/gtk/gtkplacesview.c
+++ b/gtk/gtkplacesview.c
@@ -1197,7 +1197,6 @@ server_mount_ready_cb (GObject      *source_file,
         {
           GMount *mount_point;
           GError *error;
-          GFile *enclosing_location;
 
           error = NULL;
           mount_point = g_file_find_enclosing_mount (location, NULL, &error);
@@ -1209,11 +1208,7 @@ server_mount_ready_cb (GObject      *source_file,
               goto out;
             }
 
-          enclosing_location = g_mount_get_default_location (mount_point);
-
-          emit_open_location (view, enclosing_location, priv->open_flags);
-
-          g_object_unref (enclosing_location);
+          emit_open_location (view, location, priv->open_flags);
         }
     }
 


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