aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-event.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-10-31 00:01:01 +0800
committerMilan Crha <mcrha@redhat.com>2009-10-31 00:01:01 +0800
commitdaa8339f17aa54b33b562e1de4faec24a14969b4 (patch)
treeab2d8b91739e4bd74ae72c17549002a4202af096 /mail/em-event.c
parenteff08fcad7dd0b1cecd9d5d25d997d7b5ea41f84 (diff)
downloadgsoc2013-evolution-daa8339f17aa54b33b562e1de4faec24a14969b4.tar.gz
gsoc2013-evolution-daa8339f17aa54b33b562e1de4faec24a14969b4.tar.zst
gsoc2013-evolution-daa8339f17aa54b33b562e1de4faec24a14969b4.zip
Bug #464400 - New mail notify should display sender and subject
Diffstat (limited to 'mail/em-event.c')
-rw-r--r--mail/em-event.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/mail/em-event.c b/mail/em-event.c
index 4434e0a447..7cb4c19a1e 100644
--- a/mail/em-event.c
+++ b/mail/em-event.c
@@ -65,7 +65,10 @@ eme_target_free(EEvent *ep, EEventTarget *t)
case EM_EVENT_TARGET_FOLDER: {
EMEventTargetFolder *s = (EMEventTargetFolder *)t;
g_free (s->name);
- g_free(s->uri);
+ g_free (s->uri);
+ g_free (s->msg_uid);
+ g_free (s->msg_sender);
+ g_free (s->msg_subject);
break; }
case EM_EVENT_TARGET_MESSAGE: {
EMEventTargetMessage *s = (EMEventTargetMessage *)t;
@@ -136,14 +139,17 @@ EMEvent *em_event_peek(void)
}
EMEventTargetFolder *
-em_event_target_new_folder (EMEvent *eme, const gchar *uri, guint new)
+em_event_target_new_folder (EMEvent *eme, const gchar *uri, guint new, const gchar *msg_uid, const gchar *msg_sender, const gchar *msg_subject)
{
EMEventTargetFolder *t = e_event_target_new(&eme->popup, EM_EVENT_TARGET_FOLDER, sizeof(*t));
guint32 flags = new ? EM_EVENT_FOLDER_NEWMAIL : 0;
- t->uri = g_strdup(uri);
+ t->uri = g_strdup (uri);
t->target.mask = ~flags;
t->new = new;
+ t->msg_uid = g_strdup (msg_uid);
+ t->msg_sender = g_strdup (msg_sender);
+ t->msg_subject = g_strdup (msg_subject);
return t;
}