From a4e4725d360cb603c6c122227c0f781992fe9b52 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Wed, 20 Jul 2005 11:17:42 +0000 Subject: Cleaned up most of it. Added the DnD. 2005-07-20 Srinivasa Ragavan * e-attachment-bar.[ch]:(remove_attachment) (update) (e_attachment_bar_get_selector) (e_attachment_bar_get_attachment) (destroy) (init) (e_attachment_bar_new) (e_attachment_bar_add_attachment) (e_attachment_bar_attach_remote_file) Cleaned up most of it. Added the DnD. * e-attachment.[ch]: (real_changed) (class_init) (init) (e_attachment_new) (e_attachment_new_remote_file) (e_attachment_build_remote_file): Moved the remote download code from bar to here and few cleanups. svn path=/trunk/; revision=29813 --- widgets/misc/e-attachment.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'widgets/misc/e-attachment.h') diff --git a/widgets/misc/e-attachment.h b/widgets/misc/e-attachment.h index 1a0ef7d167..92686faec2 100644 --- a/widgets/misc/e-attachment.h +++ b/widgets/misc/e-attachment.h @@ -60,6 +60,7 @@ struct _EAttachment { GnomeVFSAsyncHandle *handle; gboolean is_available_local; + int percentage; char *file_name; char *description; gboolean disposition; @@ -74,14 +75,16 @@ struct _EAttachmentClass { GObjectClass parent_class; void (*changed) (EAttachment *attachment); + void (*update) (EAttachment *attachment, char *msg); }; GType e_attachment_get_type (void); EAttachment *e_attachment_new (const char *file_name, const char *disposition, CamelException *ex); -EAttachment * e_attachment_new_remote_file (const char *file_name, +EAttachment * e_attachment_new_remote_file (const char *url, const char *disposition, + const char *path, CamelException *ex); void e_attachment_build_remote_file (const char *filename, EAttachment *attachment, -- cgit