[gthumb/gthumb-2-10] Unescape URI before printing it - bug 579294
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb/gthumb-2-10] Unescape URI before printing it - bug 579294
- Date: Fri, 1 May 2009 13:23:12 -0400 (EDT)
commit d6ba838b8f791720dec4ae23f6cd9aad430db540
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Fri May 1 13:22:06 2009 -0400
Unescape URI before printing it - bug 579294
---
libgthumb/print-callbacks.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/libgthumb/print-callbacks.c b/libgthumb/print-callbacks.c
index 761f3f8..d68fe1a 100644
--- a/libgthumb/print-callbacks.c
+++ b/libgthumb/print-callbacks.c
@@ -655,12 +655,16 @@ construct_comment (PrintCatalogInfo *pci,
if (pci->print_filenames) {
const gchar* end = NULL;
- g_utf8_validate (image->file->path, -1, &end);
- if (end > image->file->path) {
+ char *unescaped;
+
+ unescaped = gnome_vfs_unescape_string (image->file->path, NULL);
+ g_utf8_validate (unescaped, -1, &end);
+ if (end > unescaped) {
if (s->len > 0)
g_string_append (s, "\n");
- g_string_append_len (s, image->file->path, end - image->file->path);
+ g_string_append_len (s, unescaped, end - unescaped);
}
+ g_free (unescaped);
}
if (s->len > 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]