gedit r6364 - in trunk: . gedit
- From: jessevdk svn gnome org
- To: svn-commits-list gnome org
- Subject: gedit r6364 - in trunk: . gedit
- Date: Fri, 8 Aug 2008 12:56:10 +0000 (UTC)
Author: jessevdk
Date: Fri Aug 8 12:56:09 2008
New Revision: 6364
URL: http://svn.gnome.org/viewvc/gedit?rev=6364&view=rev
Log:
* gedit/gedit-utils.c: make sure to unescape in uri_for_display
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 12:56:09 2008
@@ -1256,15 +1256,17 @@
gedit_utils_uri_for_display (const gchar *uri)
{
GFile *gfile;
- gchar *ret;
+ gchar *parse_name;
+ gchar *unescape;
gfile = g_file_new_for_uri (uri);
- /* CHECK: does this actually do what we want? */
- ret = g_file_get_parse_name (gfile);
+ parse_name = g_file_get_parse_name (gfile);
+ unescape = g_uri_unescape_string (parse_name, NULL);
+ g_free (parse_name);
g_object_unref (gfile);
- return ret;
+ return unescape;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]