aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-05-16 06:44:22 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-05-16 06:44:22 +0800
commit80836cd3871291deb97325372a25d6f4a5ff2a4d (patch)
tree4dce22fabbcf42fa2f326b45402a014a7d322534 /composer
parent3d386b57d1682ad0f5fb0b9a60f0d65906f578b7 (diff)
downloadgsoc2013-evolution-80836cd3871291deb97325372a25d6f4a5ff2a4d.tar.gz
gsoc2013-evolution-80836cd3871291deb97325372a25d6f4a5ff2a4d.tar.zst
gsoc2013-evolution-80836cd3871291deb97325372a25d6f4a5ff2a4d.zip
Just use g_basename.
2002-05-15 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer-attachment.c (e_msg_composer_attachment_new): Just use g_basename. svn path=/trunk/; revision=16926
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog5
-rw-r--r--composer/e-msg-composer-attachment.c6
2 files changed, 6 insertions, 5 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index a8c5e331e5..b9f8904f78 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,8 @@
+2002-05-15 Jeffrey Stedfast <fejj@ximian.com>
+
+ * e-msg-composer-attachment.c (e_msg_composer_attachment_new):
+ Just use g_basename.
+
2002-04-26 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (build_message): Check for empty-string pgp-key
diff --git a/composer/e-msg-composer-attachment.c b/composer/e-msg-composer-attachment.c
index ddb73f2f52..7036461bbf 100644
--- a/composer/e-msg-composer-attachment.c
+++ b/composer/e-msg-composer-attachment.c
@@ -201,11 +201,7 @@ e_msg_composer_attachment_new (const char *file_name,
camel_object_unref (CAMEL_OBJECT (wrapper));
camel_mime_part_set_disposition (part, disposition);
- if (strchr (file_name, '/'))
- filename = e_utf8_from_locale_string (strrchr (file_name, '/') + 1);
- else
- filename = e_utf8_from_locale_string (file_name);
-
+ filename = e_utf8_from_locale_string (g_basename (file_name));
camel_mime_part_set_filename (part, filename);
g_free (filename);