[evolution] I#1262 - Composer: Forward -> Redirect includes account signature
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] I#1262 - Composer: Forward -> Redirect includes account signature
- Date: Mon, 7 Dec 2020 15:20:21 +0000 (UTC)
commit cdfa786118e5b25e9354cebcedee52da29284143
Author: Milan Crha <mcrha redhat com>
Date: Mon Dec 7 16:19:07 2020 +0100
I#1262 - Composer: Forward -> Redirect includes account signature
Hide the signature part on the redirect and make sure the signature
is not added into the message body.
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/1262
src/composer/e-composer-header-table.c | 4 ++--
src/composer/e-msg-composer.c | 8 +++++---
2 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/src/composer/e-composer-header-table.c b/src/composer/e-composer-header-table.c
index 951994c323..8c94739578 100644
--- a/src/composer/e-composer-header-table.c
+++ b/src/composer/e-composer-header-table.c
@@ -907,12 +907,12 @@ composer_header_table_constructed (GObject *object)
e_binding_bind_property (
table->priv->headers[ii]->input_widget, "visible",
- table->priv->signature_label, "visible",
+ table->priv->signature_combo_box, "visible",
G_BINDING_SYNC_CREATE);
e_binding_bind_property (
- table->priv->headers[ii]->input_widget, "visible",
table->priv->signature_combo_box, "visible",
+ table->priv->signature_label, "visible",
G_BINDING_SYNC_CREATE);
/* Now add the signature stuff. */
diff --git a/src/composer/e-msg-composer.c b/src/composer/e-msg-composer.c
index 3de481050d..34b12c6a37 100644
--- a/src/composer/e-msg-composer.c
+++ b/src/composer/e-msg-composer.c
@@ -4196,16 +4196,18 @@ e_msg_composer_setup_redirect (EMsgComposer *composer,
g_return_if_fail (E_IS_MSG_COMPOSER (composer));
g_return_if_fail (CAMEL_IS_MIME_MESSAGE (message));
+ composer->priv->redirect = g_object_ref (message);
+
e_msg_composer_setup_with_message (composer, message, TRUE, identity_uid, alias_name, alias_address,
cancellable);
table = e_msg_composer_get_header_table (composer);
subject = camel_mime_message_get_subject (message);
- composer->priv->redirect = message;
- g_object_ref (message);
-
e_composer_header_table_set_subject (table, subject);
+ gtk_widget_hide (GTK_WIDGET (e_composer_header_table_get_signature_combo_box (table)));
+ gtk_table_set_col_spacings (GTK_TABLE (table), 0);
+
editor = e_msg_composer_get_editor (composer);
cnt_editor = e_html_editor_get_content_editor (editor);
e_content_editor_set_editable (cnt_editor, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]