diff options
Diffstat (limited to 'composer/e-msg-composer-attachment-bar.c')
-rw-r--r-- | composer/e-msg-composer-attachment-bar.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/composer/e-msg-composer-attachment-bar.c b/composer/e-msg-composer-attachment-bar.c index b565ea8788..16c68bf910 100644 --- a/composer/e-msg-composer-attachment-bar.c +++ b/composer/e-msg-composer-attachment-bar.c @@ -442,18 +442,22 @@ static void add_from_user (EMsgComposerAttachmentBar *bar) { EMsgComposer *composer; - char *file_name; + GPtrArray *file_list; gboolean is_inline = FALSE; + int i; composer = E_MSG_COMPOSER (gtk_widget_get_toplevel (GTK_WIDGET (bar))); - file_name = e_msg_composer_select_file_attachment (composer, &is_inline); - if (!file_name) + file_list = e_msg_composer_select_file_attachments (composer, &is_inline); + if (!file_list) return; - add_from_file (bar, file_name, is_inline ? "inline" : "attachment"); + for (i = 0; i < file_list->len; i++) { + add_from_file (bar, file_list->pdata[i], is_inline ? "inline" : "attachment"); + g_free (file_list->pdata[i]); + } - g_free (file_name); + g_ptr_array_free (file_list, TRUE); } |