diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2005-08-10 06:10:24 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2005-08-10 06:10:24 +0800 |
commit | fff0f5eec345436eb23a5d97593c72196572afec (patch) | |
tree | c8d4338daa654900fa7c41ad4bb8160aeb48a2c5 /calendar/gui/dialogs | |
parent | 40467ea4760b57b7ef98de51de17768e7661fad6 (diff) | |
download | gsoc2013-evolution-fff0f5eec345436eb23a5d97593c72196572afec.tar.gz gsoc2013-evolution-fff0f5eec345436eb23a5d97593c72196572afec.tar.zst gsoc2013-evolution-fff0f5eec345436eb23a5d97593c72196572afec.zip |
Removed the warnings
svn path=/trunk/; revision=30058
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/comp-editor.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index c73c072135..304c0d13d5 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -47,6 +47,8 @@ #include <camel/camel-folder.h> #include <camel/camel-stream-mem.h> #include <camel/camel-mime-message.h> +#include <camel/camel-file-utils.h> +#include <camel/camel-stream-fs.h> #include "mail/mail-tools.h" @@ -60,6 +62,7 @@ #include "recur-comp.h" #include "comp-editor.h" #include "../e-cal-popup.h" +#include "cal-attachment-select-file.h" #include "e-attachment-bar.h" #include "misc/e-expander.h" @@ -624,7 +627,7 @@ get_attachment_list (CompEditor *editor) NULL); g_free (safe_fname); - stream = camel_stream_fs_new_with_name(attach_file_url+7, O_RDWR|O_CREAT|O_TRUNC, 0600); + stream = camel_stream_fs_new_with_name((const char *) attach_file_url+7, O_RDWR|O_CREAT|O_TRUNC, 0600); if (!stream) { /* TODO handle error conditions */ g_message ("DEBUG: could not open the file to write\n"); @@ -2014,7 +2017,7 @@ set_attachment_list (CompEditor *editor, GSList *attach_list) e_cal_component_get_uid (editor->priv->comp, &comp_uid); - if (e_attachment_bar_get_num_attachments (editor->priv->attachment_bar)) { + if (e_attachment_bar_get_num_attachments (E_ATTACHMENT_BAR (editor->priv->attachment_bar))) { /* To prevent repopulating the * bar due to redraw functions in fill_widget. * Assumes it can be set only once. @@ -2411,13 +2414,13 @@ comp_editor_get_mime_attach_list (CompEditor *editor) GSList *attach_list = NULL, *l, *parts; /* TODO assert sanity of bar */ - parts = e_attachment_bar_get_parts (editor->priv->attachment_bar); + parts = e_attachment_bar_get_parts (E_ATTACHMENT_BAR (editor->priv->attachment_bar)); for (l = parts; l ; l = l->next) { CamelDataWrapper *wrapper; CamelStreamMem *mstream; unsigned char *buffer = NULL; - char *desc; + const char *desc; cal_mime_attach = g_malloc0 (sizeof (struct CalMimeAttach)); wrapper = camel_medium_get_content_object (CAMEL_MEDIUM (l->data)); |