diff options
author | Not Zed <NotZed@Ximian.com> | 2004-04-28 14:38:20 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-04-28 14:38:20 +0800 |
commit | 6674bdd55b8b29b1bde4b032f6933dfcfb967107 (patch) | |
tree | 34edbe55104d4083ef559df43ff93f8888228d37 /filter/rule-context.c | |
parent | 4e99c39bcf70a2b15d4bd6dbb609ef0aba8d9675 (diff) | |
download | gsoc2013-evolution-6674bdd55b8b29b1bde4b032f6933dfcfb967107.tar.gz gsoc2013-evolution-6674bdd55b8b29b1bde4b032f6933dfcfb967107.tar.zst gsoc2013-evolution-6674bdd55b8b29b1bde4b032f6933dfcfb967107.zip |
fix a warning.
2004-04-28 Not Zed <NotZed@Ximian.com>
* filter-option.c (filter_option_add): fix a warning.
** Changed error messages to use EError.
svn path=/trunk/; revision=25651
Diffstat (limited to 'filter/rule-context.c')
-rw-r--r-- | filter/rule-context.c | 10 |
1 files changed, 2 insertions, 8 deletions
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 <gtk/gtk.h> #include <libgnome/gnome-i18n.h> #include <gal/util/e-xml-utils.h> +#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; } |