From c2ee0afbc85ce3ddf38ec07497c0cdae4f42a7fc Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Mon, 30 Nov 2009 11:34:43 -0600 Subject: Rename EError to EAlert to match general use better The EError mechanism is used both for error dialogs as well as basic alerts or user prompts, so we should give it a more general name which matches this use. This patch also cleans up a few includes of e-alert.h (formerly e-error.h) that were not actually being used. https://bugzilla.gnome.org/show_bug.cgi?id=602963 --- filter/e-rule-editor.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'filter/e-rule-editor.c') diff --git a/filter/e-rule-editor.c b/filter/e-rule-editor.c index a919fad7d0..c6170f09e8 100644 --- a/filter/e-rule-editor.c +++ b/filter/e-rule-editor.c @@ -31,7 +31,7 @@ #include -#include "e-util/e-error.h" +#include "e-util/e-alert.h" #include "e-util/e-util-private.h" #include "e-util/e-util.h" @@ -143,15 +143,15 @@ add_editor_response (GtkWidget *dialog, gint button, ERuleEditor *editor) GtkTreeIter iter; if (button == GTK_RESPONSE_OK) { - EError *error = NULL; - if (!e_filter_rule_validate (editor->edit, &error)) { - e_error_run_dialog (GTK_WINDOW (dialog), error); - e_error_free (error); + EAlert *alert = NULL; + if (!e_filter_rule_validate (editor->edit, &alert)) { + e_alert_run_dialog (GTK_WINDOW (dialog), alert); + e_alert_free (alert); return; } if (e_rule_context_find_rule (editor->context, editor->edit->name, editor->edit->source)) { - e_error_run_dialog_for_args ((GtkWindow *)dialog, + e_alert_run_dialog_for_args ((GtkWindow *)dialog, "filter:bad-name-notunique", editor->edit->name, NULL); return; @@ -291,16 +291,16 @@ edit_editor_response (GtkWidget *dialog, gint button, ERuleEditor *editor) gint pos; if (button == GTK_RESPONSE_OK) { - EError *error = NULL; - if (!e_filter_rule_validate (editor->edit, &error)) { - e_error_run_dialog (GTK_WINDOW (dialog), error); - e_error_free (error); + EAlert *alert = NULL; + if (!e_filter_rule_validate (editor->edit, &alert)) { + e_alert_run_dialog (GTK_WINDOW (dialog), alert); + e_alert_free (alert); return; } rule = e_rule_context_find_rule (editor->context, editor->edit->name, editor->edit->source); if (rule != NULL && rule != editor->current) { - e_error_run_dialog_for_args ((GtkWindow *)dialog, + e_alert_run_dialog_for_args ((GtkWindow *)dialog, "filter:bad-name-notunique", rule->name, NULL); -- cgit v1.2.3