aboutsummaryrefslogtreecommitdiffstats
path: root/em-format/e-mail-part-list.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-06 04:35:56 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-06 04:38:31 +0800
commit6be4901bae497b2aaf6bde559661f2390adeb9fb (patch)
treee9c48a6eb12479b21f7529588fb21febcb945878 /em-format/e-mail-part-list.c
parent900ea24740c39ac60dc1763fedb03cfa3e865b86 (diff)
downloadgsoc2013-evolution-6be4901bae497b2aaf6bde559661f2390adeb9fb.tar.gz
gsoc2013-evolution-6be4901bae497b2aaf6bde559661f2390adeb9fb.tar.zst
gsoc2013-evolution-6be4901bae497b2aaf6bde559661f2390adeb9fb.zip
EMailPart: Add "part-list" property.
This is a weak reference to the EMailPartList to which the EMailPart has been added. The property is set by e_mail_part_list_add_part(). New functions: e_mail_part_ref_part_list() e_mail_part_set_part_list()
Diffstat (limited to 'em-format/e-mail-part-list.c')
-rw-r--r--em-format/e-mail-part-list.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/em-format/e-mail-part-list.c b/em-format/e-mail-part-list.c
index c866e6a559..bcf7490634 100644
--- a/em-format/e-mail-part-list.c
+++ b/em-format/e-mail-part-list.c
@@ -289,7 +289,7 @@ e_mail_part_list_add_part (EMailPartList *part_list,
EMailPart *part)
{
g_return_if_fail (E_IS_MAIL_PART_LIST (part_list));
- g_return_if_fail (part != NULL);
+ g_return_if_fail (E_IS_MAIL_PART (part));
g_mutex_lock (&part_list->priv->queue_lock);
@@ -298,6 +298,8 @@ e_mail_part_list_add_part (EMailPartList *part_list,
g_object_ref (part));
g_mutex_unlock (&part_list->priv->queue_lock);
+
+ e_mail_part_set_part_list (part, part_list);
}
EMailPart *