aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-autofilter.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-12-18 04:38:25 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-12-18 04:38:25 +0800
commitf37b0a1ab7d9dd437905d10d85410992ad9abc0a (patch)
treec8d13292527ab275073420046acb7f786b4a4008 /mail/mail-autofilter.c
parente446a3dd9f6f82ef7152a98740092cb1c94af65c (diff)
downloadgsoc2013-evolution-f37b0a1ab7d9dd437905d10d85410992ad9abc0a.tar.gz
gsoc2013-evolution-f37b0a1ab7d9dd437905d10d85410992ad9abc0a.tar.zst
gsoc2013-evolution-f37b0a1ab7d9dd437905d10d85410992ad9abc0a.zip
...And a whole bunch more build fixes.
2002-12-17 Jeffrey Stedfast <fejj@ximian.com> ...And a whole bunch more build fixes. * mail-vfolder.c (mail_vfolder_delete_uri): Don't use g_string_sprintfa() anymore since it is apparently deprecated. * mail-session.c (main_get_filter_driver): Don't use g_string_sprintfa() anymore since it is apparently deprecated. * mail-ops.c (build_from): Don't use g_string_sprintfa() anymore since it is apparently deprecated. * mail-callbacks.c (ask_confirm_for_unwanted_html_mail): Don't use g_string_sprintfa() anymore since it is apparently deprecated. * mail-autofilter.c: Don't use g_string_sprintfa() anymore since it is apparently deprecated. * folder-browser.c: Don't use g_string_sprintfa() anymore since it is apparently deprecated. * mail-search.c (mail_search_set_subject): Remove the unnecessary g_strdup()'age as well as fix a possible buffer overrun. * mail-local.c (mail_local_folder_construct): Use g_path_get_basename(). * mail-config-druid.c (make_account): Don't use e_utf8_* functions. svn path=/trunk/; revision=19152
Diffstat (limited to 'mail/mail-autofilter.c')
-rw-r--r--mail/mail-autofilter.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/mail/mail-autofilter.c b/mail/mail-autofilter.c
index da5c1798ce..3916b33c55 100644
--- a/mail/mail-autofilter.c
+++ b/mail/mail-autofilter.c
@@ -363,7 +363,7 @@ mail_filter_delete_uri(CamelStore *store, const char *uri)
system = EVOLUTION_DATADIR "/evolution/filtertypes.xml";
rule_context_load ((RuleContext *)fc, system, user);
- deleted = rule_context_delete_uri((RuleContext *)fc, uri, uri_cmp);
+ deleted = rule_context_delete_uri ((RuleContext *) fc, uri, uri_cmp);
if (deleted) {
GtkWidget *dialog;
GString *s;
@@ -372,13 +372,14 @@ mail_filter_delete_uri(CamelStore *store, const char *uri)
s = g_string_new (_("The following filter rule(s):\n"));
l = deleted;
while (l) {
- g_string_sprintfa(s, " %s\n", (char *)l->data);
+ g_string_append_printf (s, " %s\n", (char *)l->data);
l = l->next;
}
- g_string_sprintfa (s, _("Used the removed folder:\n '%s'\n"
- "And have been updated."), uri);
+ g_string_append_printf (s, _("Used the removed folder:\n '%s'\n"
+ "And have been updated."), uri);
- dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE, "%s", s->str);
+ dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO,
+ GTK_BUTTONS_CLOSE, "%s", s->str);
g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog);
g_string_free (s, TRUE);
@@ -386,9 +387,9 @@ mail_filter_delete_uri(CamelStore *store, const char *uri)
gtk_widget_show (dialog);
printf("Folder deleterename '%s' changed filters, resaving\n", uri);
- if (rule_context_save((RuleContext *)fc, user) == -1)
- g_warning("Could not write out changed filter rules\n");
- rule_context_free_uri_list((RuleContext *)fc, deleted);
+ if (rule_context_save ((RuleContext *) fc, user) == -1)
+ g_warning ("Could not write out changed filter rules\n");
+ rule_context_free_uri_list ((RuleContext *) fc, deleted);
}
g_free (user);