which has not been applied yet). This is 'downward compatible'
with the new old tinymail though
pmo-trunk-r470
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));
*
* 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);