diff options
author | Radek Doulik <rodo@src.gnome.org> | 2002-06-06 23:54:39 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2002-06-06 23:54:39 +0800 |
commit | f6956dfe32ead2baabb43fd407038486c8980859 (patch) | |
tree | 67d8bf59c9a5e87f1b7cde160694a2cc536c6e54 /mail/mail-config.c | |
parent | 1f993cacd1ac269ea4e7a77c57edbce732b9e8b5 (diff) | |
download | gsoc2013-evolution-f6956dfe32ead2baabb43fd407038486c8980859.tar.gz gsoc2013-evolution-f6956dfe32ead2baabb43fd407038486c8980859.tar.zst gsoc2013-evolution-f6956dfe32ead2baabb43fd407038486c8980859.zip |
enhanced signature editor
svn path=/trunk/; revision=17132
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 20 |
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; +} |