aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-07-26 05:54:09 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-07-26 05:54:09 +0800
commitfe4bbe19bf2bd577edbb1e3aa17a4317be55b6ed (patch)
treed0ff3c18f5fb960090e8523b458491a1298601f2 /mail/mail-config.c
parent35ed08a7654b18590dd850ba7901e725be033394 (diff)
downloadgsoc2013-evolution-fe4bbe19bf2bd577edbb1e3aa17a4317be55b6ed.tar
gsoc2013-evolution-fe4bbe19bf2bd577edbb1e3aa17a4317be55b6ed.tar.gz
gsoc2013-evolution-fe4bbe19bf2bd577edbb1e3aa17a4317be55b6ed.tar.bz2
gsoc2013-evolution-fe4bbe19bf2bd577edbb1e3aa17a4317be55b6ed.tar.lz
gsoc2013-evolution-fe4bbe19bf2bd577edbb1e3aa17a4317be55b6ed.tar.xz
gsoc2013-evolution-fe4bbe19bf2bd577edbb1e3aa17a4317be55b6ed.tar.zst
gsoc2013-evolution-fe4bbe19bf2bd577edbb1e3aa17a4317be55b6ed.zip
Always prepend a leading "/" to the url->path. (set_service_url): Added
2000-07-25 Jeffrey Stedfast <fejj@helixcode.com> * mail-config.c (get_service_url): Always prepend a leading "/" to the url->path. (set_service_url): Added more error checking and also strip the leading '/' from the url->path (create_identity_page): Set the signature file to the one specified in the identity record, else set the default path to ~/.sugnature svn path=/trunk/; revision=4333
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index d13b4b3641..f05c526a77 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -343,19 +343,20 @@ create_identity_page (GtkWidget *vbox, struct identity_record *idrec)
gtk_misc_set_alignment (GTK_MISC (sig), 1, 0);
sig_entry = gnome_file_entry_new (NULL, _("Signature File"));
- if (idrec && idrec->sigfile)
- gtk_entry_set_text (GTK_ENTRY (sig_entry), idrec->sigfile);
+ gnome_file_entry_set_default_path (GNOME_FILE_ENTRY (sig_entry), g_get_home_dir ());
+ if (idrec && idrec->sigfile) {
+ gtk_entry_set_text (GTK_ENTRY (gnome_file_entry_gtk_entry (
+ GNOME_FILE_ENTRY (sig_entry))), idrec->sigfile);
+ } else {
+ 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_table_attach (GTK_TABLE (table), sig_entry, 1, 2, 4, 5,
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)));