#include <modest-platform.h>
#include <modest-runtime.h>
-#include <modest-tny-msg.h>
#include <modest-attachment-view.h>
#include <modest-attachments-view.h>
return GTK_WIDGET (self);
}
-
-
-
-
void
modest_attachments_view_set_message (ModestAttachmentsView *attachments_view, TnyMsg *msg)
{
return;
}
+
parts = TNY_LIST (tny_simple_list_new ());
tny_mime_part_get_parts (TNY_MIME_PART (priv->msg), parts);
iter = tny_list_create_iterator (parts);
TnyMimePart *part;
part = TNY_MIME_PART (tny_iterator_get_current (iter));
- if (part && modest_tny_mime_part_is_attachment_for_modest(part)) {
+ if (part && (tny_mime_part_is_attachment (part) || TNY_IS_MSG (part))) {
modest_attachments_view_add_attachment (attachments_view, part);
}
}
gtk_widget_queue_draw (GTK_WIDGET (attachments_view));
-
+
}
void