diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-05-15 21:17:58 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-05-20 01:07:22 +0800 |
commit | f9ffe647231a7ba2bd5347d92d560b6a57fee786 (patch) | |
tree | 6c1245d91a399647fc25521bc1f38cf564210979 /mail/e-mail-display.c | |
parent | 0b4e7ec091c8bbe65dc2f2afd7da78b04da7c274 (diff) | |
download | gsoc2013-evolution-f9ffe647231a7ba2bd5347d92d560b6a57fee786.tar gsoc2013-evolution-f9ffe647231a7ba2bd5347d92d560b6a57fee786.tar.gz gsoc2013-evolution-f9ffe647231a7ba2bd5347d92d560b6a57fee786.tar.bz2 gsoc2013-evolution-f9ffe647231a7ba2bd5347d92d560b6a57fee786.tar.lz gsoc2013-evolution-f9ffe647231a7ba2bd5347d92d560b6a57fee786.tar.xz gsoc2013-evolution-f9ffe647231a7ba2bd5347d92d560b6a57fee786.tar.zst gsoc2013-evolution-f9ffe647231a7ba2bd5347d92d560b6a57fee786.zip |
Convert EMailPart to a GObject.
EMailPart is reference-counted, subclassed, and allows a custom
finalize function. There's no excuse for it not to use GObject.
Diffstat (limited to 'mail/e-mail-display.c')
-rw-r--r-- | mail/e-mail-display.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mail/e-mail-display.c b/mail/e-mail-display.c index 3861fbbced..a809d231d1 100644 --- a/mail/e-mail-display.c +++ b/mail/e-mail-display.c @@ -991,7 +991,7 @@ mail_display_plugin_widget_requested (WebKitWebView *web_view, exit: if (part != NULL) - e_mail_part_unref (part); + g_object_unref (part); return widget; } @@ -1217,12 +1217,12 @@ mail_parts_bind_dom (GObject *object, part_id = e_mail_part_get_id (part); element = find_element_by_id (document, part_id); - if (element != NULL && part->bind_func != NULL) - part->bind_func (part, element); + if (element != NULL) + e_mail_part_bind_dom_element (part, element); } while (!g_queue_is_empty (&queue)) - e_mail_part_unref (g_queue_pop_head (&queue)); + g_object_unref (g_queue_pop_head (&queue)); } static void |