MODEST_MSG_EDIT_WINDOW (win),
MODEST_MSG_EDIT_WINDOW_WIDGET_TYPE_ATTACHMENTS);
+#ifdef MODEST_TOOLKIT_HILDON2
+ selected_attachments = modest_attachments_view_get_attachments (
+ MODEST_ATTACHMENTS_VIEW (attachments_view));
+#else
selected_attachments = modest_attachments_view_get_selection (
MODEST_ATTACHMENTS_VIEW (attachments_view));
+#endif
n_att_selected = tny_list_get_length (selected_attachments);
g_object_unref (selected_attachments);