[evolution/wip/webkit-composer: 335/372] Composer should know if it was started with new message
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer: 335/372] Composer should know if it was started with new message
- Date: Thu, 6 Feb 2014 11:51:40 +0000 (UTC)
commit 3c64140edfe515e20f31d1d16ced167567c86c86
Author: Tomas Popela <tpopela redhat com>
Date: Thu Jan 23 14:15:19 2014 +0100
Composer should know if it was started with new message
composer/e-composer-private.c | 1 +
composer/e-composer-private.h | 1 +
composer/e-msg-composer.c | 9 +++++++++
composer/e-msg-composer.h | 4 ++++
mail/em-composer-utils.c | 1 +
5 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/composer/e-composer-private.c b/composer/e-composer-private.c
index 2ee3c6d..a3ab824 100644
--- a/composer/e-composer-private.c
+++ b/composer/e-composer-private.c
@@ -142,6 +142,7 @@ e_composer_private_constructed (EMsgComposer *composer)
priv->charset = e_composer_get_default_charset ();
priv->is_from_message = FALSE;
+ priv->is_from_new_message = FALSE;
e_composer_actions_init (composer);
diff --git a/composer/e-composer-private.h b/composer/e-composer-private.h
index 3a60dce..34f0edf 100644
--- a/composer/e-composer-private.h
+++ b/composer/e-composer-private.h
@@ -97,6 +97,7 @@ struct _EMsgComposerPrivate {
CamelMimeMessage *redirect;
gboolean is_from_message;
+ gboolean is_from_new_message;
};
void e_composer_private_constructed (EMsgComposer *composer);
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index df262bc..7429f2a 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -5129,3 +5129,12 @@ e_save_spell_languages (const GList *spell_dicts)
g_ptr_array_free (lang_array, TRUE);
}
+
+void
+e_msg_composer_is_from_new_message (EMsgComposer *composer,
+ gboolean is_from_new_message)
+{
+ g_return_if_fail (composer != NULL);
+
+ composer->priv->is_from_new_message = is_from_new_message;
+}
diff --git a/composer/e-msg-composer.h b/composer/e-msg-composer.h
index 6f18d31..2444df9 100644
--- a/composer/e-msg-composer.h
+++ b/composer/e-msg-composer.h
@@ -197,6 +197,10 @@ GByteArray * e_msg_composer_get_raw_message_text
gboolean e_msg_composer_is_exiting (EMsgComposer *composer);
void e_save_spell_languages (const GList *spell_languages);
+void e_msg_composer_is_from_new_message
+ (EMsgComposer *composer,
+ gboolean is_from_new_message);
+
G_END_DECLS
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index 9c9adee..4a31fe2 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -1153,6 +1153,7 @@ em_utils_compose_new_message (EShell *shell,
composer = create_new_composer (shell, "", folder);
composer_set_no_change (composer);
+ 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]