aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-attachment.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2005-08-24 12:22:14 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2005-08-24 12:22:14 +0800
commitd851c3525b60b858136f42a343a938fd6e864e7f (patch)
tree31c05436a7b3678fe07839be6640c7f7441cb4ad /widgets/misc/e-attachment.c
parent26da038f6d966c12c899f4c5b26413ccd0083347 (diff)
downloadgsoc2013-evolution-d851c3525b60b858136f42a343a938fd6e864e7f.tar.gz
gsoc2013-evolution-d851c3525b60b858136f42a343a938fd6e864e7f.tar.zst
gsoc2013-evolution-d851c3525b60b858136f42a343a938fd6e864e7f.zip
Fix for bug #314136. Shows filename in the remote download in composer.
2005-08-24 Srinivasa Ragavan <sragavan@novell.com> * e-attachment.c (e_attachment_build_remote_file): Fix for bug #314136. Shows filename in the remote download in composer. * e-attachment-bar.c (update): Better space management. Kills one extra row that happens some times. (e_attachment_bar_set_width): Just adjusts the size instead of rebuild of the bar, which is the cause for the freeze. Fixes the bug #313799. Remove the function e_attachment_bar_refresh * e-attachment-bar.h: Remove the function e_attachment_bar_refresh svn path=/trunk/; revision=30234
Diffstat (limited to 'widgets/misc/e-attachment.c')
-rw-r--r--widgets/misc/e-attachment.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/misc/e-attachment.c b/widgets/misc/e-attachment.c
index 54579ccfa6..e5a37bcdc4 100644
--- a/widgets/misc/e-attachment.c
+++ b/widgets/misc/e-attachment.c
@@ -477,7 +477,6 @@ e_attachment_build_remote_file (const char *file_name,
filename = g_path_get_basename (attachment->file_name);
camel_mime_part_set_filename (part, filename);
- g_free (filename);
if (attachment->description) {
camel_mime_part_set_description (part, attachment->description);
@@ -490,7 +489,7 @@ e_attachment_build_remote_file (const char *file_name,
attachment->size = statbuf.st_size;
attachment->guessed_type = TRUE;
g_free (attachment->file_name);
- attachment->file_name = g_strdup (filename);
+ attachment->file_name = filename;
curl = camel_url_new ("file:", NULL);
camel_url_set_path (curl, file_name);