diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-05-16 06:44:22 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-05-16 06:44:22 +0800 |
commit | 80836cd3871291deb97325372a25d6f4a5ff2a4d (patch) | |
tree | 4dce22fabbcf42fa2f326b45402a014a7d322534 /composer/e-msg-composer-attachment.c | |
parent | 3d386b57d1682ad0f5fb0b9a60f0d65906f578b7 (diff) | |
download | gsoc2013-evolution-80836cd3871291deb97325372a25d6f4a5ff2a4d.tar gsoc2013-evolution-80836cd3871291deb97325372a25d6f4a5ff2a4d.tar.gz gsoc2013-evolution-80836cd3871291deb97325372a25d6f4a5ff2a4d.tar.bz2 gsoc2013-evolution-80836cd3871291deb97325372a25d6f4a5ff2a4d.tar.lz gsoc2013-evolution-80836cd3871291deb97325372a25d6f4a5ff2a4d.tar.xz 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/e-msg-composer-attachment.c')
-rw-r--r-- | composer/e-msg-composer-attachment.c | 6 |
1 files changed, 1 insertions, 5 deletions
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); |