return result;
}
-gchar* modest_account_mgr_get_signature (ModestAccountMgr *self, const gchar* name,
- gboolean* use_signature)
+gchar*
+modest_account_mgr_get_signature (ModestAccountMgr *self,
+ const gchar* name,
+ gboolean* use_signature)
{
- if (use_signature) {
- *use_signature =
- modest_account_mgr_get_bool (self, name, MODEST_ACCOUNT_USE_SIGNATURE, FALSE);
- }
+ *use_signature =
+ modest_account_mgr_get_bool (self, name, MODEST_ACCOUNT_USE_SIGNATURE, FALSE);
return modest_account_mgr_get_string (self, name, MODEST_ACCOUNT_SIGNATURE, FALSE);
}
error = modest_mail_operation_get_error (mail_op);
/* Show error */
- modest_platform_run_information_dialog ((GtkWindow *) win, err_msg);
+ if (err_msg)
+ modest_platform_run_information_dialog ((GtkWindow *) win, err_msg);
if (win)
g_object_unref (win);
switch (rf_helper->action) {
case ACTION_REPLY:
new_msg =
- modest_tny_msg_create_reply_msg (msg, header, from, signature,
+ modest_tny_msg_create_reply_msg (msg, header, from,
+ (use_signature) ? signature : NULL,
rf_helper->reply_forward_type,
MODEST_TNY_MSG_REPLY_MODE_SENDER);
break;
case ACTION_REPLY_TO_ALL:
new_msg =
- modest_tny_msg_create_reply_msg (msg, header, from, signature, rf_helper->reply_forward_type,
+ modest_tny_msg_create_reply_msg (msg, header, from,
+ (use_signature) ? signature : NULL,
+ rf_helper->reply_forward_type,
MODEST_TNY_MSG_REPLY_MODE_ALL);
edit_type = MODEST_EDIT_TYPE_REPLY;
break;
case ACTION_FORWARD:
new_msg =
- modest_tny_msg_create_forward_msg (msg, from, signature, rf_helper->reply_forward_type);
+ modest_tny_msg_create_forward_msg (msg, from, (use_signature) ? signature : NULL,
+ rf_helper->reply_forward_type);
edit_type = MODEST_EDIT_TYPE_FORWARD;
break;
default:
MsgData *data;
gchar *account_name, *from;
ModestAccountMgr *account_mgr;
- char *info_text;
+/* char *info_text; */
gboolean had_error = FALSE;
guint64 available_disk, expected_size;
gint parts_count;
on_save_to_drafts_cb,
g_object_ref(edit_window));
- info_text = g_strdup_printf (_("mail_va_saved_to_drafts"), _("mcen_me_folder_drafts"));
- modest_platform_information_banner (NULL, NULL, info_text);
- g_free (info_text);
+/* info_text = g_strdup_printf (_("mail_va_saved_to_drafts"), _("mcen_me_folder_drafts")); */
+ modest_platform_information_banner (NULL, NULL, _CS("sfil_ib_saving"));
modest_msg_edit_window_reset_modified (edit_window);
/* Frees */