aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-02-12 06:14:49 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-02-12 06:14:49 +0800
commit3fa465c9d73c66bdd29cc311c2532fe2b0084516 (patch)
tree8f1e846fab2402e522b3eab86a36e771b0279f3d /mail/mail-config.c
parentcdb641800827669bdde0ade2e3efd08fd3a2b405 (diff)
downloadgsoc2013-evolution-3fa465c9d73c66bdd29cc311c2532fe2b0084516.tar.gz
gsoc2013-evolution-3fa465c9d73c66bdd29cc311c2532fe2b0084516.tar.zst
gsoc2013-evolution-3fa465c9d73c66bdd29cc311c2532fe2b0084516.zip
Use gtk_window_set_resizable() instead of gtk_window_set_policy().
2003-02-11 Jeffrey Stedfast <fejj@ximian.com> * mail-account-editor.c (construct): Use gtk_window_set_resizable() instead of gtk_window_set_policy(). * mail-config.c: Fix a bunch of warnings. (mail_config_signature_write): Removed. * mail-callbacks.c: Removed unused variables. svn path=/trunk/; revision=19885
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c27
1 files changed, 9 insertions, 18 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 4415453729..86bfa2b175 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -243,7 +243,7 @@ signature_new_from_xml (char *in, int id)
cur = cur->next;
}
- xmlDocFree (doc);
+ xmlFreeDoc (doc);
return sig;
}
@@ -251,7 +251,6 @@ signature_new_from_xml (char *in, int id)
static void
config_read_signatures (void)
{
- MailConfigSignature *sig;
GSList *list, *l, *tail, *n;
int i = 0;
@@ -383,8 +382,8 @@ static void
config_cache_labels (void)
{
GSList *labels, *list, *tail, *n;
- char *buf, *name, *colour;
MailConfigLabel *label;
+ char *buf, *colour;
int num = 0;
tail = labels = NULL;
@@ -515,8 +514,6 @@ mail_config_write_on_exit (void)
{
EAccount *account;
EIterator *iter;
- char *path, *p;
- int i;
if (config_write_timeout) {
g_source_remove (config_write_timeout);
@@ -971,7 +968,6 @@ mail_config_uri_renamed (GCompareFunc uri_cmp, const char *old, const char *new)
EAccount *account;
EIterator *iter;
int i, work = 0;
- gpointer val;
char *oldname, *newname;
char *cachenames[] = { "config/hidestate-",
"config/et-expanded-",
@@ -1488,22 +1484,16 @@ mail_config_signature_delete (MailConfigSignature *sig)
}
void
-mail_config_signature_write (MailConfigSignature *sig)
-{
- config_write_signature (sig, sig->id);
-}
-
-void
mail_config_signature_set_filename (MailConfigSignature *sig, const char *filename)
{
- gchar *old_filename = sig->filename;
-
+ char *old_filename = sig->filename;
+
sig->filename = g_strdup (filename);
if (old_filename) {
delete_unused_signature_file (old_filename);
g_free (old_filename);
}
- mail_config_signature_write (sig);
+ config_write_signatures ();
}
void
@@ -1511,8 +1501,9 @@ mail_config_signature_set_name (MailConfigSignature *sig, const char *name)
{
g_free (sig->name);
sig->name = g_strdup (name);
-
- mail_config_signature_write (sig);
+
+ config_write_signatures ();
+
mail_config_signature_emit_event (MAIL_CONFIG_SIG_EVENT_NAME_CHANGED, sig);
}
@@ -1664,7 +1655,7 @@ mail_config_signature_set_html (MailConfigSignature *sig, gboolean html)
{
if (sig->html != html) {
sig->html = html;
- mail_config_signature_write (sig);
+ config_write_signatures ();
mail_config_signature_emit_event (MAIL_CONFIG_SIG_EVENT_HTML_CHANGED, sig);
}
}