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
This commit is contained in:
committed by
Jeffrey Stedfast
parent
35ed08a765
commit
fe4bbe19bf
@ -4,6 +4,8 @@
|
||||
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
|
||||
|
||||
2000-07-25 Michael Meeks <michael@helixcode.com>
|
||||
|
||||
|
||||
@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user