Commit e0d2de3c authored by Jesse van den Kieboom's avatar Jesse van den Kieboom

fixed unescaping basenames for remote uri's

	* gedit/gedit-utils.c: fixed unescaping basenames for remote uri's

svn path=/trunk/; revision=6362
parent dc02c76e
2008-08-07 Jesse van den Kieboom <jesse@icecrew.nl>
* gedit/gedit-utils.c: fixed unescaping basenames for remote uri's
2008-08-07 Jesse van den Kieboom <jesse@icecrew.nl>
* plugins/filebrowser/gedit-file-browser.store.c: fixed handling
......
......@@ -1208,11 +1208,15 @@ gedit_utils_basename_for_display (gchar const *uri)
/* For remote files with a parent (so not just http://foo.com)
or remote file for which the decoding of the host name fails,
use the _parse_name and take basename of that */
gchar *parse_name;
gchar *parse_name;
gchar *base;
parse_name = g_file_get_parse_name (gfile);
name = g_path_get_basename (parse_name);
g_free (parse_name);
parse_name = g_file_get_parse_name (gfile);
base = g_filename_display_basename (parse_name);
name = g_uri_unescape_string (base, NULL);
g_free (base);
g_free (parse_name);
}
else
{
......
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