aboutsummaryrefslogtreecommitdiffstats
path: root/mail
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 /mail
parent762ac32d75dc9ad72e66969afda09766592fd42f (diff)
downloadgsoc2013-evolution-97fd6bc629e26597d48214e39e630d5000df9ddc.tar.gz
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 'mail')
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/message-list.c6
2 files changed, 13 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 1e90b0851f..6d3c31a249 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,11 @@
+2008-09-24 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #313225
+
+ * 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.
+
2008-09-24 Sankar P <psankar@novell.com>
License Changes
diff --git a/mail/message-list.c b/mail/message-list.c
index 927297b8eb..9d69adabcb 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -236,6 +236,7 @@ static struct {
{ "stock_score-highest", NULL },
{ "stock_mail-flag-for-followup", NULL },
{ "stock_mail-flag-for-followup-done", NULL },
+ { "stock_new-meeting", NULL }
};
/* FIXME: junk prefs */
@@ -1341,6 +1342,8 @@ ml_tree_value_at (ETreeModel *etm, ETreePath path, int col, void *model_data)
str = camel_message_info_user_tag(msg_info, "follow-up");
return (void *)(str ? str : "");
case COL_ATTACHMENT:
+ if (camel_message_info_user_flag (msg_info, "$has_cal"))
+ return GINT_TO_POINTER (2);
return GINT_TO_POINTER ((camel_message_info_flags(msg_info) & CAMEL_MESSAGE_ATTACHMENTS) != 0);
case COL_FROM:
str = camel_message_info_from (msg_info);
@@ -1735,8 +1738,9 @@ message_list_create_extras (void)
for (i = 0; i < 2; i++)
images [i] = states_pixmaps [i + 6].pixbuf;
+ images [2] = states_pixmaps [18].pixbuf;
- e_table_extras_add_cell (extras, "render_attachment", e_cell_toggle_new (0, 2, images));
+ e_table_extras_add_cell (extras, "render_attachment", e_cell_toggle_new (0, 3, images));
images [1] = states_pixmaps [8].pixbuf;
e_table_extras_add_cell (extras, "render_flagged", e_cell_toggle_new (0, 2, images));