aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-composer-prefs.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-02-01 15:41:49 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-02-01 15:41:49 +0800
commit347a9a04cf4c1fbacdb7c44f872e9d67bc0801b0 (patch)
treeef0bce083dd39108268abb3469ceec1c12dc410b /mail/em-composer-prefs.c
parent55b25cdd13d43105fe4cca4e27e1de9e51fd49ef (diff)
downloadgsoc2013-evolution-347a9a04cf4c1fbacdb7c44f872e9d67bc0801b0.tar
gsoc2013-evolution-347a9a04cf4c1fbacdb7c44f872e9d67bc0801b0.tar.gz
gsoc2013-evolution-347a9a04cf4c1fbacdb7c44f872e9d67bc0801b0.tar.bz2
gsoc2013-evolution-347a9a04cf4c1fbacdb7c44f872e9d67bc0801b0.tar.lz
gsoc2013-evolution-347a9a04cf4c1fbacdb7c44f872e9d67bc0801b0.tar.xz
gsoc2013-evolution-347a9a04cf4c1fbacdb7c44f872e9d67bc0801b0.tar.zst
gsoc2013-evolution-347a9a04cf4c1fbacdb7c44f872e9d67bc0801b0.zip
use the type hint to sort for inbox, not the name.
2005-02-01 Not Zed <NotZed@Ximian.com> * em-folder-tree-model.c (sort_cb): use the type hint to sort for inbox, not the name. (emft_is_special_local_folder): removed. (em_folder_tree_model_set_folder_info): special-case the local-store case, handle translated names and the name hints. * em-folder-tree.c (render_pixbuf): use the camel folderinfo folder type to determine the icon, don't hardcode based on name. ** See bug #71310 * em-composer-prefs.c (sig_add_script_response): force a save of the signatures as soon as they change. Also save the script name if we were just editing it, not just the signature name. svn path=/trunk/; revision=28653
Diffstat (limited to 'mail/em-composer-prefs.c')
-rw-r--r--mail/em-composer-prefs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mail/em-composer-prefs.c b/mail/em-composer-prefs.c
index 33f0908a1c..7a3cd88beb 100644
--- a/mail/em-composer-prefs.c
+++ b/mail/em-composer-prefs.c
@@ -390,6 +390,8 @@ sig_add_script_response (GtkWidget *widget, int button, EMComposerPrefs *prefs)
/* we're just editing an existing signature script */
g_free (sig->name);
sig->name = g_strdup (name);
+ g_free(sig->filename);
+ sig->filename = g_strdup(script);
e_signature_list_change (mail_config_get_signatures (), sig);
} else {
sig = mail_config_signature_new (script, TRUE, TRUE);
@@ -399,6 +401,8 @@ sig_add_script_response (GtkWidget *widget, int button, EMComposerPrefs *prefs)
g_object_unref (sig);
}
+ mail_config_save_signatures();
+
gtk_widget_hide (prefs->sig_script_dialog);
g_strfreev (argv);
g_free (script);