[gimp/gimp-2-6] Bug 589674 – "Send by Email" does not update "Filename"
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-6] Bug 589674 – "Send by Email" does not update "Filename"
- Date: Sat, 1 Aug 2009 16:43:50 +0000 (UTC)
commit a87adf79c44d7955b0726b1f38df804df6e0c357
Author: Michael Natterer <mitch gimp org>
Date: Sat Aug 1 18:39:18 2009 +0200
Bug 589674 â?? "Send by Email" does not update "Filename"
Use g_filename_display_basename() so it doesn't choke on non-utf8
filenames.
(cherry picked from commit f712a316dfde34facdc604a29e082bc54882a83f)
plug-ins/common/mail.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/mail.c b/plug-ins/common/mail.c
index 2d01f06..0dfdfd7 100644
--- a/plug-ins/common/mail.c
+++ b/plug-ins/common/mail.c
@@ -238,7 +238,7 @@ run (const gchar *name,
if (filename)
{
- gchar *basename = g_path_get_basename (filename);
+ gchar *basename = g_filename_display_basename (filename);
g_strlcpy (mail_info.filename, basename, BUFFER_SIZE);
g_free (basename);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]