[evolution-patches] patch to remove the warnings in comp-editor [calendar]
- From: chen <pchenthill novell com>
- To: patches <evolution-patches lists ximian com>
- Subject: [evolution-patches] patch to remove the warnings in comp-editor [calendar]
- Date: Wed, 10 Aug 2005 03:33:15 +0530
Hi,
Have attached the patch.
thanks, chenthill.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2790
diff -u -p -r1.2790 ChangeLog
--- ChangeLog 9 Aug 2005 19:54:55 -0000 1.2790
+++ ChangeLog 9 Aug 2005 21:48:45 -0000
@@ -1,3 +1,9 @@
+2005-08-10 Chenthill Palanisamy <pchenthill novell com>
+
+ * gui/dialogs/comp-editor.c: (get_attachment_list),
+ (set_attachment_list), (comp_editor_get_mime_attach_list):
+ Removed the warnings.
+
2005-08-10 Dinesh Layek < LDinesh novell com >
Fixes #310438
Index: gui/dialogs/comp-editor.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/dialogs/comp-editor.c,v
retrieving revision 1.143
diff -u -p -r1.143 comp-editor.c
--- gui/dialogs/comp-editor.c 20 Jul 2005 11:18:54 -0000 1.143
+++ gui/dialogs/comp-editor.c 9 Aug 2005 21:48:55 -0000
@@ -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");
@@ -2005,7 +2008,7 @@ set_attachment_list (CompEditor *editor,
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.
@@ -2402,13 +2405,13 @@ comp_editor_get_mime_attach_list (CompEd
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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]