X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-ui-actions.c;fp=src%2Fmodest-ui-actions.c;h=3d61f1cdd4b584162de15709da716127f1e72855;hp=8112d122ff3c80abdea8b210b1b024f25b717d8e;hb=1627fed39da6170e55f9e0616d3fa493986fa084;hpb=0ca412c0351f777d1fb3e3ff12317a3068b01642 diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index 8112d12..3d61f1c 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -680,6 +680,7 @@ modest_ui_actions_compose_msg(ModestWindow *win, GnomeVFSFileSize total_size, allowed_size; guint64 available_disk, expected_size, parts_size; guint parts_count; + TnyList *header_pairs; /* we check for low-mem */ if (modest_platform_check_memory_low (win, TRUE)) @@ -751,8 +752,11 @@ modest_ui_actions_compose_msg(ModestWindow *win, body = use_signature ? g_strconcat ((body_str) ? body_str : "", signature, NULL) : g_strdup(body_str); + header_pairs = TNY_LIST (tny_simple_list_new ()); msg = modest_tny_msg_new_html_plain (to_str, from_str, cc_str, bcc_str, subject_str, - NULL, NULL, body, NULL, NULL, NULL, NULL, NULL); + NULL, NULL, body, NULL, NULL, NULL, NULL, header_pairs, NULL); + g_object_unref (header_pairs); + if (!msg) { g_printerr ("modest: failed to create new msg\n"); goto cleanup; @@ -2038,7 +2042,6 @@ modest_ui_actions_reply_calendar (ModestWindow *win, TnyList *header_pairs) gboolean use_signature; TnyMsg *new_msg; GtkWidget *msg_win; - gdouble parent_zoom; const gchar *account_name; const gchar *mailbox; TnyHeader *msg_header; @@ -2084,9 +2087,6 @@ modest_ui_actions_reply_calendar (ModestWindow *win, TnyList *header_pairs) mgr = modest_runtime_get_window_mgr (); modest_window_mgr_register_window (mgr, MODEST_WINDOW (msg_win), (ModestWindow *) win); - parent_zoom = modest_window_get_zoom (MODEST_WINDOW (win)); - modest_window_set_zoom (MODEST_WINDOW (msg_win), parent_zoom); - /* Show edit window */ gtk_widget_show_all (GTK_WIDGET (msg_win)); @@ -2805,6 +2805,7 @@ modest_ui_actions_on_save_to_drafts (GtkWidget *widget, ModestMsgEditWindow *edi data->priority_flags, data->references, data->in_reply_to, + data->custom_header_pairs, on_save_to_drafts_cb, g_object_ref(edit_window)); @@ -2917,7 +2918,8 @@ modest_ui_actions_on_send (GtkWidget *widget, ModestMsgEditWindow *edit_window) data->images, data->references, data->in_reply_to, - data->priority_flags); + data->priority_flags, + data->custom_header_pairs); if (modest_mail_operation_get_status (mail_operation) == MODEST_MAIL_OPERATION_STATUS_IN_PROGRESS) modest_platform_information_banner (NULL, NULL, _("mcen_ib_outbox_waiting_to_be_sent"));