aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-event.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-03 02:21:21 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-03 03:12:55 +0800
commit5fcf41925becbac39447b315097b062de2bfd0a1 (patch)
tree3ae862b0c279b7e591ba6ff5ae07e865191fe59e /mail/em-event.c
parentba47251738be2efbe56852e843f9b4c3e4be5b9a (diff)
downloadgsoc2013-evolution-5fcf41925becbac39447b315097b062de2bfd0a1.tar.gz
gsoc2013-evolution-5fcf41925becbac39447b315097b062de2bfd0a1.tar.zst
gsoc2013-evolution-5fcf41925becbac39447b315097b062de2bfd0a1.zip
EMEventTargetFolder: Add an EAccount member.
The mail-notification plugin can use the EAccount member directly instead of searching for it by URI.
Diffstat (limited to 'mail/em-event.c')
-rw-r--r--mail/em-event.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mail/em-event.c b/mail/em-event.c
index 084c857968..a1b0442024 100644
--- a/mail/em-event.c
+++ b/mail/em-event.c
@@ -42,6 +42,8 @@ eme_target_free (EEvent *ep, EEventTarget *t)
switch (t->type) {
case EM_EVENT_TARGET_FOLDER: {
EMEventTargetFolder *s = (EMEventTargetFolder *)t;
+ if (s->account != NULL)
+ g_object_unref (s->account);
g_free (s->name);
g_free (s->uri);
g_free (s->msg_uid);
@@ -108,6 +110,7 @@ em_event_peek (void)
EMEventTargetFolder *
em_event_target_new_folder (EMEvent *eme,
+ EAccount *account,
const gchar *uri,
guint new,
const gchar *msg_uid,
@@ -120,6 +123,10 @@ em_event_target_new_folder (EMEvent *eme,
t = e_event_target_new (
&eme->popup, EM_EVENT_TARGET_FOLDER, sizeof (*t));
+ if (E_IS_ACCOUNT (account))
+ t->account = g_object_ref (account);
+ else
+ t->account = NULL;
t->uri = g_strdup (uri);
t->target.mask = ~flags;
t->new = new;