aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/itip-formatter
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-09-24 19:56:11 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-09-24 19:56:11 +0800
commit97fd6bc629e26597d48214e39e630d5000df9ddc (patch)
tree1b64dfe855fa951ff658bca97c1ae68464b67648 /plugins/itip-formatter
parent762ac32d75dc9ad72e66969afda09766592fd42f (diff)
downloadgsoc2013-evolution-97fd6bc629e26597d48214e39e630d5000df9ddc.tar
gsoc2013-evolution-97fd6bc629e26597d48214e39e630d5000df9ddc.tar.gz
gsoc2013-evolution-97fd6bc629e26597d48214e39e630d5000df9ddc.tar.bz2
gsoc2013-evolution-97fd6bc629e26597d48214e39e630d5000df9ddc.tar.lz
gsoc2013-evolution-97fd6bc629e26597d48214e39e630d5000df9ddc.tar.xz
gsoc2013-evolution-97fd6bc629e26597d48214e39e630d5000df9ddc.tar.zst
gsoc2013-evolution-97fd6bc629e26597d48214e39e630d5000df9ddc.zip
** Fix for bug #313225
2008-09-24 Milan Crha <mcrha@redhat.com> ** Fix for bug #313225 * mail/message-list.c: (struct states_pixmaps), (ml_tree_value_at), (message_list_create_extras): Show meeting icon in 'Attachment' column on messages with '$has_cal' user flag set. * plugins/itip-formatter/itip-formatter.c: (format_itip): Set the user flag '$has_cal' on the message when formatting a calendar attachment. svn path=/trunk/; revision=36445
Diffstat (limited to 'plugins/itip-formatter')
-rw-r--r--plugins/itip-formatter/ChangeLog7
-rw-r--r--plugins/itip-formatter/itip-formatter.c5
2 files changed, 12 insertions, 0 deletions
diff --git a/plugins/itip-formatter/ChangeLog b/plugins/itip-formatter/ChangeLog
index 4fc1bddaa4..baff65ba48 100644
--- a/plugins/itip-formatter/ChangeLog
+++ b/plugins/itip-formatter/ChangeLog
@@ -1,3 +1,10 @@
+2008-09-24 Milan Crha <mcrha@redhat.com>
+
+ ** Part of fix for bug #313225
+
+ * itip-formatter.c: (format_itip): Set the user flag '$has_cal'
+ on the message when formatting a calendar attachment.
+
2008-08-27 Sankar P <psankar@novell.com>
License Changes
diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c
index decf129344..284006b05a 100644
--- a/plugins/itip-formatter/itip-formatter.c
+++ b/plugins/itip-formatter/itip-formatter.c
@@ -2243,6 +2243,11 @@ format_itip (EPlugin *ep, EMFormatHookTarget *target)
classid = g_strdup_printf("itip:///%s", ((EMFormat *) target->format)->part_id->str);
+ /* mark message as containing calendar, thus it will show the icon in message list now on */
+ if (target->format->uid && target->format->folder &&
+ !camel_folder_get_message_user_flag (target->format->folder, target->format->uid, "$has_cal"))
+ camel_folder_set_message_user_flag (target->format->folder, target->format->uid, "$has_cal", TRUE);
+
puri = (struct _itip_puri *)em_format_add_puri(target->format, sizeof(struct _itip_puri), classid, target->part, itip_attachment_frame);
pobj = em_format_html_add_pobject ((EMFormatHTML *) target->format, sizeof (EMFormatHTMLPObject), classid, target->part, format_itip_object);