aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2002-03-09 07:04:09 +0800
committerRadek Doulik <rodo@src.gnome.org>2002-03-09 07:04:09 +0800
commit20a28f53fc442fd51d0abaf45d1066cc42aa3885 (patch)
tree95b89d306876c505529444f9f46e51626970a38f /mail/mail-config.c
parent91c99e0e5ae2a2cf3558916bce63e009fb16483e (diff)
downloadgsoc2013-evolution-20a28f53fc442fd51d0abaf45d1066cc42aa3885.tar
gsoc2013-evolution-20a28f53fc442fd51d0abaf45d1066cc42aa3885.tar.gz
gsoc2013-evolution-20a28f53fc442fd51d0abaf45d1066cc42aa3885.tar.bz2
gsoc2013-evolution-20a28f53fc442fd51d0abaf45d1066cc42aa3885.tar.lz
gsoc2013-evolution-20a28f53fc442fd51d0abaf45d1066cc42aa3885.tar.xz
gsoc2013-evolution-20a28f53fc442fd51d0abaf45d1066cc42aa3885.tar.zst
gsoc2013-evolution-20a28f53fc442fd51d0abaf45d1066cc42aa3885.zip
new function
2002-03-08 Radek Doulik <rodo@ximian.com> * mail-config.c (mail_config_signature_set_html): new function * mail-accounts.c (sig_event_client): watch for HTML changed event * mail-signature-editor.c: added HTML check menu item to Format menu svn path=/trunk/; revision=15996
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index c8dc7cfa60..64cd4c7f9a 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -2954,6 +2954,7 @@ mail_config_signature_set_filename (MailConfigSignature *sig, const gchar *filen
delete_unused_signature_file (old_filename);
g_free (old_filename);
}
+ mail_config_signature_write (sig);
}
void
@@ -2979,6 +2980,7 @@ mail_config_signature_set_random (MailConfigSignature *sig, gboolean random)
mail_config_signature_emit_event (MAIL_CONFIG_SIG_EVENT_RANDOM_OFF, sig);
}
sig->random = random;
+ mail_config_signature_write (sig);
}
}
@@ -3035,3 +3037,13 @@ mail_config_signature_run_script (gchar *script)
waitpid (pid, &status, 0);
}
}
+
+void
+mail_config_signature_set_html (MailConfigSignature *sig, gboolean html)
+{
+ if (sig->html != html) {
+ sig->html = html;
+ mail_config_signature_write (sig);
+ mail_config_signature_emit_event (MAIL_CONFIG_SIG_EVENT_HTML_CHANGED, sig);
+ }
+}