Commit 65adfa65 authored by Harald Judt's avatar Harald Judt

Unescape URIs in the shortcut view (bug #10831)

Show spaces in the path names instead of "%20".
parent 8bc720ed
......@@ -264,6 +264,7 @@ thunar_g_file_get_display_name_remote (GFile *mount_point)
gchar *parse_name;
const gchar *p;
const gchar *path;
gchar *unescaped;
gchar *hostname;
gchar *display_name = NULL;
const gchar *skip;
......@@ -314,9 +315,13 @@ thunar_g_file_get_display_name_remote (GFile *mount_point)
path = "/";
}
/* unescape the path so that spaces and other characters are shown correctly */
unescaped = g_uri_unescape_string (path, NULL);
/* TRANSLATORS: this will result in "<path> on <hostname>" */
display_name = g_strdup_printf (_("%s on %s"), path, hostname);
display_name = g_strdup_printf (_("%s on %s"), unescaped, hostname);
g_free (unescaped);
g_free (hostname);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment