aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 673c8f2bbd..7e0d4095d6 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -130,6 +130,8 @@ typedef struct {
int signatures;
MailConfigLabel labels[5];
+
+ gboolean signature_info;
} MailConfig;
static MailConfig *config = NULL;
@@ -968,6 +970,9 @@ config_read (void)
label_defaults[i].color, NULL);
}
g_free (path);
+
+ config->signature_info = bonobo_config_get_boolean_with_default (config->db,
+ "/Mail/Info/show_signature_editor_info", TRUE, NULL);
}
#define bonobo_config_set_string_wrapper(db, path, val, ev) bonobo_config_set_string (db, path, val ? val : "", ev)
@@ -1334,6 +1339,9 @@ mail_config_write_on_exit (void)
/* Message Preview */
if (config->preview_hash)
g_hash_table_foreach_remove (config->preview_hash, hash_save_state, "Preview");
+
+ /* signature editor info label */
+ bonobo_config_set_boolean (config->db, "/Mail/Info/show_signature_editor_info", config->signature_info, NULL);
CORBA_exception_init (&ev);
Bonobo_ConfigDatabase_sync (config->db, &ev);
@@ -2966,3 +2974,15 @@ mail_config_signature_set_html (MailConfigSignature *sig, gboolean html)
mail_config_signature_emit_event (MAIL_CONFIG_SIG_EVENT_HTML_CHANGED, sig);
}
}
+
+gboolean
+mail_config_get_show_signature_info (void)
+{
+ return config->signature_info;
+}
+
+void
+mail_config_set_show_signature_info (gboolean show)
+{
+ config->signature_info = show;
+}