aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Leach <jasonleach@usa.net>2001-01-22 05:08:38 +0800
committerJacob Leach <jleach@src.gnome.org>2001-01-22 05:08:38 +0800
commit6269637d7226d702fd05c4cdb6160adab0e18718 (patch)
tree52df62808747005b650d8163b2437ee585b4eeaa
parent09c6606f0788b00771b42a1430eb65c8afe261ee (diff)
downloadgsoc2013-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
-rw-r--r--composer/ChangeLog8
-rw-r--r--composer/evolution-composer.c16
2 files changed, 23 insertions, 1 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index e2a42efc6a..cb5778ce3c 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,11 @@
+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.
+
2001-01-19 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer-hdrs.c (create_optionmenu): Use "Full Name
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",