diff options
author | Jason Leach <jasonleach@usa.net> | 2001-01-22 05:08:38 +0800 |
---|---|---|
committer | Jacob Leach <jleach@src.gnome.org> | 2001-01-22 05:08:38 +0800 |
commit | 6269637d7226d702fd05c4cdb6160adab0e18718 (patch) | |
tree | 52df62808747005b650d8163b2437ee585b4eeaa /composer/evolution-composer.c | |
parent | 09c6606f0788b00771b42a1430eb65c8afe261ee (diff) | |
download | gsoc2013-evolution-6269637d7226d702fd05c4cdb6160adab0e18718.tar gsoc2013-evolution-6269637d7226d702fd05c4cdb6160adab0e18718.tar.gz gsoc2013-evolution-6269637d7226d702fd05c4cdb6160adab0e18718.tar.bz2 gsoc2013-evolution-6269637d7226d702fd05c4cdb6160adab0e18718.tar.lz gsoc2013-evolution-6269637d7226d702fd05c4cdb6160adab0e18718.tar.xz gsoc2013-evolution-6269637d7226d702fd05c4cdb6160adab0e18718.tar.zst gsoc2013-evolution-6269637d7226d702fd05c4cdb6160adab0e18718.zip |
(Fix #1222: doing File->New->Mail Message doesn't include .sig)
2001-01-20 Jason Leach <jasonleach@usa.net>
(Fix #1222: doing File->New->Mail Message doesn't include .sig)
* evolution-composer.c (init): Get the users account information,
see if they've specified a sig file, if they do, create a
composer with that sig.
svn path=/trunk/; revision=7686
Diffstat (limited to 'composer/evolution-composer.c')
-rw-r--r-- | composer/evolution-composer.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/composer/evolution-composer.c b/composer/evolution-composer.c index 0d8af6eed9..3036f98e82 100644 --- a/composer/evolution-composer.c +++ b/composer/evolution-composer.c @@ -239,7 +239,21 @@ class_init (EvolutionComposerClass *klass) static void init (EvolutionComposer *composer) { - composer->composer = e_msg_composer_new (); + const MailConfigAccount *account; + gboolean send_html; + gchar *sig_file = NULL; + + account = mail_config_get_default_account (); + send_html = mail_config_get_send_html (); + + if (account->id) + sig_file = account->id->signature; + + if (sig_file) + composer->composer = e_msg_composer_new_with_sig_file (sig_file, send_html); + else + composer->composer = e_msg_composer_new (); + gtk_signal_connect (GTK_OBJECT (composer->composer), "send", GTK_SIGNAL_FUNC (send_cb), NULL); gtk_signal_connect (GTK_OBJECT (composer->composer), "postpone", |