[Commits] [SCM] claws branch, gtk2, updated. 3.20.0-73-g998b3aee0

wwp at claws-mail.org wwp at claws-mail.org
Mon Apr 8 10:30:28 CET 2024


The branch, gtk2 has been updated
       via  998b3aee0d6ad0d592fc2142295df7a97a9028c0 (commit)
      from  9c072967ca8cfe4c68e243aae9b38bbbb8c52d41 (commit)

Summary of changes:
 src/prefs_other.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)


- Log -----------------------------------------------------------------
commit 998b3aee0d6ad0d592fc2142295df7a97a9028c0
Author: wwp <subscript at free.fr>
Date:   Mon Apr 8 12:28:54 2024 +0200

    fix bug 4788, '"Change primary passphrase" disabled status handling

diff --git a/src/prefs_other.c b/src/prefs_other.c
index aa90ad15e..558ae4e40 100644
--- a/src/prefs_other.c
+++ b/src/prefs_other.c
@@ -76,7 +76,6 @@ typedef struct _OtherPage
 
 #ifndef PASSWORD_CRYPTO_OLD
 static void prefs_change_primary_passphrase(GtkButton *button, gpointer data);
-static void prefs_use_passphrase_toggled(GtkToggleButton *button, gpointer data);
 #endif
 
 
@@ -542,8 +541,7 @@ static void prefs_other_create_widget(PrefsPage *_page, GtkWindow *window,
 	gtk_box_pack_start (GTK_BOX (vbox_passphrase), hbox1, FALSE, FALSE, 0);
 	gtk_box_pack_start (GTK_BOX (hbox1), button_change_passphrase,
 			FALSE, FALSE, 0);
-	g_signal_connect (G_OBJECT (checkbtn_use_passphrase), "toggled",
-				G_CALLBACK (prefs_use_passphrase_toggled), button_change_passphrase);
+	SET_TOGGLE_SENSITIVITY (checkbtn_use_passphrase, button_change_passphrase);
 	g_signal_connect (G_OBJECT (button_change_passphrase), "clicked",
 			  G_CALLBACK (prefs_change_primary_passphrase), NULL);
 #endif
@@ -767,13 +765,4 @@ void prefs_change_primary_passphrase(GtkButton *button, gpointer data)
 	/* Call the passphrase change dialog */
 	primary_passphrase_change_dialog();
 }
-
-void prefs_use_passphrase_toggled(GtkToggleButton *chkbtn, gpointer data)
-{
-	GtkWidget *button = GTK_WIDGET(data);
-	gboolean active = gtk_toggle_button_get_active(chkbtn);
-
-	if (!active)
-		gtk_widget_set_sensitive(button, active);
-}
 #endif

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list