gedit r6362 - in trunk: . gedit
- From: jessevdk svn gnome org
- To: svn-commits-list gnome org
- Subject: gedit r6362 - in trunk: . gedit
- Date: Fri, 8 Aug 2008 11:10:23 +0000 (UTC)
Author: jessevdk
Date: Fri Aug 8 11:10:23 2008
New Revision: 6362
URL: http://svn.gnome.org/viewvc/gedit?rev=6362&view=rev
Log:
* gedit/gedit-utils.c: fixed unescaping basenames for remote uri's
Modified:
trunk/ChangeLog
trunk/gedit/gedit-utils.c
Modified: trunk/gedit/gedit-utils.c
==============================================================================
--- trunk/gedit/gedit-utils.c (original)
+++ trunk/gedit/gedit-utils.c Fri Aug 8 11:10:23 2008
@@ -1208,11 +1208,15 @@
/* 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
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]