[Commits] [SCM] claws branch, gtk2, updated. 3.20.0-24-g7d2e06a93

wwp at claws-mail.org wwp at claws-mail.org
Thu Jan 4 10:35:52 UTC 2024


The branch, gtk2 has been updated
       via  7d2e06a9366cc42fa81c524d35081423ca95f084 (commit)
      from  04b9debbfb1199eaa84a87c978bc665aeff2c3fe (commit)

Summary of changes:
 src/compose.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 7d2e06a9366cc42fa81c524d35081423ca95f084
Author: wwp <subscript at free.fr>
Date:   Thu Jan 4 11:32:47 2024 +0100

    Fix bug 4724: set proper availability status to sign/encrypt toolbar buttons (patch by Olaf Hering).

diff --git a/src/compose.c b/src/compose.c
index d912c459a..198d94d42 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -11558,7 +11558,8 @@ static void compose_toggle_sign_cb(GtkToggleAction *action, gpointer data)
 	Compose *compose = (Compose *)data;
 
 	compose->use_signing = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
-	gtk_toggle_tool_button_set_active(GTK_TOGGLE_TOOL_BUTTON(compose->toolbar->privacy_sign_btn), compose->use_signing);
+	if (compose->toolbar->privacy_sign_btn != NULL)
+		gtk_toggle_tool_button_set_active(GTK_TOGGLE_TOOL_BUTTON(compose->toolbar->privacy_sign_btn), compose->use_signing);
 }
 
 static void compose_toggle_encrypt_cb(GtkToggleAction *action, gpointer data)
@@ -11566,7 +11567,8 @@ static void compose_toggle_encrypt_cb(GtkToggleAction *action, gpointer data)
 	Compose *compose = (Compose *)data;
 
 	compose->use_encryption = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
-	gtk_toggle_tool_button_set_active(GTK_TOGGLE_TOOL_BUTTON(compose->toolbar->privacy_encrypt_btn), compose->use_encryption);
+	if (compose->toolbar->privacy_encrypt_btn != NULL)
+		gtk_toggle_tool_button_set_active(GTK_TOGGLE_TOOL_BUTTON(compose->toolbar->privacy_encrypt_btn), compose->use_encryption);
 }
 
 static void compose_activate_privacy_system(Compose *compose, PrefsAccount *account, gboolean warn) 

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list