[evolution/wip/webkit-composer] When creating new message in composer set empty text to body
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer] When creating new message in composer set empty text to body
- Date: Tue, 18 Mar 2014 08:33:16 +0000 (UTC)
commit f872264063cb0f88657a404c25c4294d88ca7fe4
Author: Tomas Popela <tpopela redhat com>
Date: Tue Mar 18 09:30:41 2014 +0100
When creating new message in composer set empty text to body
This has to be done because it will activate all the functions that prepare
the structure of the composer.
e-util/e-editor-widget.c | 2 +-
mail/em-composer-utils.c | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-editor-widget.c b/e-util/e-editor-widget.c
index 15404ef..bbd656d 100644
--- a/e-util/e-editor-widget.c
+++ b/e-util/e-editor-widget.c
@@ -5174,7 +5174,7 @@ e_editor_widget_set_text_html (EEditorWidget *widget,
widget->priv->reload_in_progress = TRUE;
/* Only convert messages that are in HTML */
- if (!widget->priv->html_mode) {
+ if (!widget->priv->html_mode && *text) {
if (strstr (text, "<!-- text/html -->")) {
if (!show_lose_formatting_dialog (widget)) {
e_editor_widget_set_html_mode (widget, TRUE);
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index 25c5219..9103829 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -1161,6 +1161,7 @@ em_utils_compose_new_message (EShell *shell,
composer = create_new_composer (shell, "", folder);
composer_set_no_change (composer);
+ e_msg_composer_set_body_text (composer, "", TRUE);
e_msg_composer_is_from_new_message (composer, TRUE);
gtk_widget_show (GTK_WIDGET (composer));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]