From e8245d8448766ac3f7c7383ea78d77844906b0f7 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Wed, 9 Aug 2006 13:21:35 +0000 Subject: [PATCH] * fix to comply with tinymail changes (I made patch for tinymail, which has not been applied yet). This is 'downward compatible' with the new old tinymail though pmo-trunk-r470 --- src/modest-tny-msg-actions.c | 5 +++-- src/modest-tny-msg-actions.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modest-tny-msg-actions.c b/src/modest-tny-msg-actions.c index 60b3efc..54049ac 100644 --- a/src/modest-tny-msg-actions.c +++ b/src/modest-tny-msg-actions.c @@ -154,8 +154,9 @@ modest_tny_msg_actions_find_nth_part (TnyMsgIface *msg, gint index) iter = tny_list_iface_create_iterator ((TnyListIface*)parts); if (!tny_iterator_iface_has_first(iter)) return NULL; - - part = TNY_MIME_PART_IFACE(tny_iterator_iface_nth (iter, index)); + + tny_iterator_iface_nth (iter, index); + part = TNY_MIME_PART_IFACE(tny_iterator_iface_current (iter)); g_object_unref (G_OBJECT(iter)); g_object_unref (G_OBJECT(parts)); diff --git a/src/modest-tny-msg-actions.h b/src/modest-tny-msg-actions.h index 65c6d88..09c478d 100644 --- a/src/modest-tny-msg-actions.h +++ b/src/modest-tny-msg-actions.h @@ -68,7 +68,7 @@ TnyMimePartIface *modest_tny_msg_actions_find_body_part (TnyMsgIface * self, gbo * * search for the nth (mime) part in the message * - * Returns: the TnyMsgMimePartIface for the found part, or NULL if no matching part is found + * Returns: the TnyMsgMimePartIface for the found part, or NULL if no matching part is foundi; must be unref'd */ TnyMimePartIface * modest_tny_msg_actions_find_nth_part (TnyMsgIface *msg, gint index); -- 1.7.9.5