[Commits] [SCM] claws branch, master, updated. 3.13.2-19-g503cb50

ticho at claws-mail.org ticho at claws-mail.org
Mon Feb 8 12:41:18 CET 2016


The branch, master has been updated
       via  503cb50edf1d194b96f1764a9d565166e2639b19 (commit)
      from  f1811794160f215211d17ed164d8d25822545a23 (commit)

Summary of changes:
 src/mainwindow.c |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 503cb50edf1d194b96f1764a9d565166e2639b19
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Mon Feb 8 12:40:23 2016 +0100

    Fix build with --with-password-encryption=old

diff --git a/src/mainwindow.c b/src/mainwindow.c
index 07f9639..3e038e1 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -429,9 +429,10 @@ static void sync_cb		 ( GtkAction	*action,
 
 static void forget_session_passwords_cb	(GtkAction	*action,
 					 gpointer	 data );
+#ifndef PASSWORD_CRYPTO_OLD
 static void forget_master_password_cb	(GtkAction	*action,
 					 gpointer	 data );
-
+#endif
 static gboolean mainwindow_focus_in_event	(GtkWidget	*widget, 
 						 GdkEventFocus	*focus,
 						 gpointer	 data);
@@ -779,7 +780,9 @@ static GtkActionEntry mainwin_entries[] =
 	{"Tools/NetworkLog",			NULL, N_("Network _Log"), "<shift><control>L", NULL, G_CALLBACK(log_window_show_cb) }, 
 	/* {"Tools/---",			NULL, "---", NULL, NULL, NULL }, */
 	{"Tools/ForgetSessionPasswords",		NULL, N_("_Forget all session passwords"), NULL, NULL, G_CALLBACK(forget_session_passwords_cb) }, 
+#ifndef PASSWORD_CRYPTO_OLD
 	{"Tools/ForgetMasterPassword",		NULL, N_("Forget _master password"), NULL, NULL, G_CALLBACK(forget_master_password_cb) },
+#endif
 
 /* Configuration menu */	
 	{"Configuration/ChangeAccount",		NULL, N_("C_hange current account") },
@@ -3097,9 +3100,11 @@ SensitiveCondMask main_window_get_current_state(MainWindow *mainwin)
 		}
 	}
 
+#ifndef PASSWORD_CRYPTO_OLD
 	if (master_password_is_entered()) {
 		UPDATE_STATE(M_MASTER_PASSWORD);
 	}
+#endif
 #undef UPDATE_STATE
 
 	return state;
@@ -5330,6 +5335,7 @@ static void forget_session_passwords_cb(GtkAction *action, gpointer data)
 				   fgtn), fgtn, accs);	
 }
 
+#ifndef PASSWORD_CRYPTO_OLD
 static void forget_master_password_cb(GtkAction *action, gpointer data)
 {
 	MainWindow *mainwin = (MainWindow *)data;
@@ -5338,6 +5344,7 @@ static void forget_master_password_cb(GtkAction *action, gpointer data)
 	master_password_forget();
 	main_window_unlock(mainwin);
 }
+#endif
 
 void mainwindow_learn (MainWindow *mainwin, gboolean is_spam)
 {

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list