aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-config.c10
2 files changed, 14 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 856d75798c..70847b04a1 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-25 Michael Meeks <michael@helixcode.com>
+
+ * mail-config.c (create_identity_page): set default signature to
+ ~/.signature
+
2000-07-25 Peter Williams <peterw@helixcode.com>
* mail-ops.c (reply): Check for the case of fb->mail_display->
diff --git a/mail/mail-config.c b/mail/mail-config.c
index ce5c1a8501..ab11e1cf5f 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -254,7 +254,7 @@ create_identity_page (GtkWidget *vbox, struct identity_record *idrec)
GtkWidget *name, *addr, *org, *sig;
GtkWidget *name_entry, *addr_entry, *org_entry, *sig_entry;
GtkWidget *hsep;
- char *user;
+ char *user, *default_sig;
struct passwd *pw = NULL;
html = html_new (FALSE);
@@ -349,6 +349,14 @@ create_identity_page (GtkWidget *vbox, struct identity_record *idrec)
GTK_FILL, 0, 0, 0);
gnome_file_entry_set_default_path (GNOME_FILE_ENTRY (sig_entry),
g_get_home_dir ());
+
+ default_sig = g_strconcat (g_get_home_dir (), G_DIR_SEPARATOR_S,
+ ".signature", NULL);
+ gtk_entry_set_text (GTK_ENTRY (
+ gnome_file_entry_gtk_entry (GNOME_FILE_ENTRY (sig_entry))),
+ default_sig);
+ g_free (default_sig);
+
gtk_object_set_data (GTK_OBJECT (vbox), "sig",
gnome_file_entry_gtk_entry (GNOME_FILE_ENTRY (sig_entry)));