aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-vfolder.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-04-28 14:39:25 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-04-28 14:39:25 +0800
commite23cf1ca36bcf886bcac15545166eff0e930a4bd (patch)
tree22462408dc2fe4da0306bb472cdd6239d739b650 /mail/mail-vfolder.c
parent9e7d28c8bc1c14cbb627f0375a60c312c5569536 (diff)
downloadgsoc2013-evolution-e23cf1ca36bcf886bcac15545166eff0e930a4bd.tar.gz
gsoc2013-evolution-e23cf1ca36bcf886bcac15545166eff0e930a4bd.tar.zst
gsoc2013-evolution-e23cf1ca36bcf886bcac15545166eff0e930a4bd.zip
** Changed error messages to use EError.
2004-04-28 Not Zed <NotZed@Ximian.com> ** Changed error messages to use EError. svn path=/trunk/; revision=25653
Diffstat (limited to 'mail/mail-vfolder.c')
-rw-r--r--mail/mail-vfolder.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c
index 7e8fec52c4..45e542b936 100644
--- a/mail/mail-vfolder.c
+++ b/mail/mail-vfolder.c
@@ -39,7 +39,7 @@
#include "em-utils.h"
#include "e-util/e-account-list.h"
-#include "e-util/e-dialog-utils.h"
+#include "widgets/misc/e-error.h"
#include "camel/camel.h"
#include "camel/camel-vee-folder.h"
@@ -521,11 +521,7 @@ mail_vfolder_delete_uri(CamelStore *store, const char *curi)
GtkWidget *dialog;
char *user;
- dialog = gtk_message_dialog_new (NULL, 0, GTK_MESSAGE_INFO, GTK_BUTTONS_OK,
- _("The following vFolder(s):\n%s"
- "Used the removed folder:\n '%s'\n"
- "And have been updated."),
- changed->str, uri);
+ dialog = e_error_new(NULL, "mail:vfolder-updated", changed->str, uri, NULL);
g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog);
gtk_widget_show (dialog);
@@ -981,8 +977,8 @@ vfolder_edit_rule(const char *uri)
g_signal_connect(gd, "response", G_CALLBACK(edit_rule_response), NULL);
gtk_widget_show((GtkWidget *)gd);
} else {
- e_notice (NULL, GTK_MESSAGE_WARNING,
- _("Trying to edit a vfolder '%s' which doesn't exist."), uri);
+ /* TODO: we should probably just create it ... */
+ e_error_run(NULL, "mail:vfolder-notexist", uri, NULL);
}
if (url)
@@ -1002,15 +998,7 @@ new_rule_clicked(GtkWidget *w, int button, void *data)
}
if (rule_context_find_rule ((RuleContext *)context, rule->name, rule->source)) {
- GtkWidget *dialog =
- gtk_message_dialog_new ((GtkWindow *) w, GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
- _("Rule name '%s' is not unique, choose another."),
- rule->name);
-
- gtk_dialog_run ((GtkDialog *) dialog);
- gtk_widget_destroy (dialog);
-
+ e_error_run((GtkWindow *)w, "mail:vfolder-notunique", rule->name, NULL);
return;
}