From 6674bdd55b8b29b1bde4b032f6933dfcfb967107 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Wed, 28 Apr 2004 06:38:20 +0000 Subject: fix a warning. 2004-04-28 Not Zed * filter-option.c (filter_option_add): fix a warning. ** Changed error messages to use EError. svn path=/trunk/; revision=25651 --- filter/rule-context.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'filter/rule-context.c') diff --git a/filter/rule-context.c b/filter/rule-context.c index 07a3775e3e..61fa4cbf1b 100644 --- a/filter/rule-context.c +++ b/filter/rule-context.c @@ -35,6 +35,7 @@ #include #include #include +#include "widgets/misc/e-error.h" #include "rule-context.h" #include "filter-rule.h" @@ -677,14 +678,7 @@ new_rule_response(GtkWidget *dialog, int button, RuleContext *context) } if (rule_context_find_rule (context, rule->name, rule->source)) { - dialog = gtk_message_dialog_new ((GtkWindow *) dialog, GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, - _("Rule name '%s' is not unique, choose another."), - rule->name); - - gtk_dialog_set_has_separator ((GtkDialog *) dialog, FALSE); - gtk_dialog_run ((GtkDialog *) dialog); - gtk_widget_destroy (dialog); + e_error_run((GtkWindow *)dialog, "filter:bad-name-notunique", rule->name, NULL); return; } -- cgit v1.2.3