summaryrefslogtreecommitdiff
path: root/src/prefs_common_dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/prefs_common_dialog.c')
-rw-r--r--src/prefs_common_dialog.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/prefs_common_dialog.c b/src/prefs_common_dialog.c
index 41fdb24..119a056 100644
--- a/src/prefs_common_dialog.c
+++ b/src/prefs_common_dialog.c
@@ -219,6 +219,7 @@ static struct Privacy {
219#if USE_SSL 219#if USE_SSL
220static struct MasterPassword { 220static struct MasterPassword {
221 GtkWidget *checkbtn_use_master_password; 221 GtkWidget *checkbtn_use_master_password;
222 GtkWidget *checkbtn_auto_unload_master_password;
222 GtkWidget *spinbtn_encrypted_password_min_length; 223 GtkWidget *spinbtn_encrypted_password_min_length;
223} master_password; 224} master_password;
224#endif 225#endif
@@ -573,6 +574,9 @@ static PrefsUIData ui_data[] = {
573#if USE_SSL 574#if USE_SSL
574 {"use_master_password", &master_password.checkbtn_use_master_password, 575 {"use_master_password", &master_password.checkbtn_use_master_password,
575 prefs_set_data_from_toggle, prefs_set_toggle}, 576 prefs_set_data_from_toggle, prefs_set_toggle},
577 {"auto_unload_master_password",
578 &master_password.checkbtn_auto_unload_master_password,
579 prefs_set_data_from_toggle, prefs_set_toggle},
576 {"encrypted_password_min_length", 580 {"encrypted_password_min_length",
577 &master_password.spinbtn_encrypted_password_min_length, 581 &master_password.spinbtn_encrypted_password_min_length,
578 prefs_set_data_from_spinbtn, 582 prefs_set_data_from_spinbtn,
@@ -2681,6 +2685,7 @@ static void prefs_master_password_create(void)
2681 GtkWidget *hbox_spc; 2685 GtkWidget *hbox_spc;
2682 GtkWidget *label; 2686 GtkWidget *label;
2683 GtkWidget *checkbtn_use_master_password; 2687 GtkWidget *checkbtn_use_master_password;
2688 GtkWidget *checkbtn_auto_unload_master_password;
2684 GtkWidget *spinbtn_encrypted_password_min_length; 2689 GtkWidget *spinbtn_encrypted_password_min_length;
2685 GtkObject *spinbtn_encrypted_password_min_length_adj; 2690 GtkObject *spinbtn_encrypted_password_min_length_adj;
2686 2691
@@ -2706,6 +2711,11 @@ static void prefs_master_password_create(void)
2706 FALSE, 2711 FALSE,
2707 0); 2712 0);
2708 2713
2714 PACK_CHECK_BUTTON (vbox_master_password_suboptions,
2715 checkbtn_auto_unload_master_password,
2716 _("Automatically unload master password "
2717 "after session initialization"));
2718
2709 hbox1 = gtk_hbox_new (FALSE, 8); 2719 hbox1 = gtk_hbox_new (FALSE, 8);
2710 gtk_widget_show (hbox1); 2720 gtk_widget_show (hbox1);
2711 gtk_box_pack_start (GTK_BOX (vbox_master_password_suboptions), 2721 gtk_box_pack_start (GTK_BOX (vbox_master_password_suboptions),
@@ -2740,10 +2750,13 @@ static void prefs_master_password_create(void)
2740 64, 2750 64,
2741 -1); 2751 -1);
2742 2752
2743 SET_TOGGLE_SENSITIVITY (checkbtn_use_master_password, hbox1); 2753 SET_TOGGLE_SENSITIVITY (checkbtn_use_master_password,
2754 vbox_master_password_suboptions);
2744 2755
2745 master_password.checkbtn_use_master_password 2756 master_password.checkbtn_use_master_password
2746 = checkbtn_use_master_password; 2757 = checkbtn_use_master_password;
2758 master_password.checkbtn_auto_unload_master_password
2759 = checkbtn_auto_unload_master_password;
2747 master_password.spinbtn_encrypted_password_min_length 2760 master_password.spinbtn_encrypted_password_min_length
2748 = spinbtn_encrypted_password_min_length; 2761 = spinbtn_encrypted_password_min_length;
2749} 2762}