diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-05-24 08:12:24 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-05-24 08:12:24 +0000 |
commit | f0aecea6fcbd3aaa8e36b39d952cdf6d2da3ac70 (patch) | |
tree | 6dbe2bc9a381aa42af029fe333b5414581f8a2e1 /src/utils.c | |
parent | 45982892bdd62a2b58806fe3e1a2b72115297943 (diff) |
reimplemented the attachment list with GtkTreeView. Fixed attaching of locale filename.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@282 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c index 4d9257d0..8fb7cc3d 100644 --- a/src/utils.c +++ b/src/utils.c @@ -1401,6 +1401,7 @@ GList *uri_list_extract_filenames(const gchar *uri_list) while (isspace(*p)) p++; if (!strncmp(p, "file:", 5)) { p += 5; + while (*p == '/' && *(p + 1) == '/') p++; q = p; while (*q && *q != '\n' && *q != '\r') q++; @@ -1410,6 +1411,7 @@ GList *uri_list_extract_filenames(const gchar *uri_list) file = g_malloc(q - p + 2); strncpy(file, p, q - p + 1); file[q - p + 1] = '\0'; + decode_uri(file, file); result = g_list_append(result,file); } } @@ -1486,6 +1488,7 @@ gint get_uri_len(const gchar *str) /* Decodes URL-Encoded strings (i.e. strings in which spaces are replaced by * plusses, and escape characters are used) + * Note: decoded_uri and encoded_uri can point the same location */ void decode_uri(gchar *decoded_uri, const gchar *encoded_uri) { |