diff options
author | Matias De Lellis <mati86dl@gmail.com> | 2014-12-01 14:56:05 -0600 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2014-12-01 14:57:32 -0600 |
commit | bd71849e26bd6d72fe142f8ea74eeafaf0168431 (patch) | |
tree | 76af903615f9e11549b245c7ac7fa6828866ea84 /gtk/gtkplacessidebar.c | |
parent | c1c68b409c31d4584362d44d68d24654eea482cf (diff) | |
download | gtk+-bd71849e26bd6d72fe142f8ea74eeafaf0168431.tar.gz |
GtkPlacesSidebar: Fix Home and Desktop on Windows.
We were concatenating "file://" to the result of g_get_user_special_dir() to build
a URI, but this is not enough on Windows. Use g_filename_to_uri() instead.
See https://bugzilla.gnome.org/show_bug.cgi?id=739453
Diffstat (limited to 'gtk/gtkplacessidebar.c')
-rw-r--r-- | gtk/gtkplacessidebar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index 6b9555102b..80426a33cc 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -690,7 +690,7 @@ get_home_directory_uri (void) if (!home) return NULL; - return g_strconcat ("file://", home, NULL); + return g_filename_to_uri (home, NULL, NULL); } static gchar * @@ -706,7 +706,7 @@ get_desktop_directory_uri (void) if (path_is_home_dir (name)) return NULL; - return g_strconcat ("file://", name, NULL); + return g_filename_to_uri (name, NULL, NULL); } static gboolean |