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 --- plugins/face/face.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/face') diff --git a/plugins/face/face.c b/plugins/face/face.c index 67c37f7cd0..10864c0103 100644 --- a/plugins/face/face.c +++ b/plugins/face/face.c @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include @@ -172,7 +172,7 @@ prepare_image (const gchar *image_filename, gchar **file_contents, gsize *length err = error->message; if (can_claim) - e_error_run (NULL, "org.gnome.evolution.plugins.face:not-an-image", err, NULL); + e_alert_run_dialog_for_args (NULL, "org.gnome.evolution.plugins.face:not-an-image", err, NULL); if (error) g_error_free (error); @@ -184,7 +184,7 @@ prepare_image (const gchar *image_filename, gchar **file_contents, gsize *length if (height <= 0 || width <= 0) { if (can_claim) - e_error_run (NULL, "org.gnome.evolution.plugins.face:invalid-image-size", NULL, NULL); + e_alert_run_dialog_for_args (NULL, "org.gnome.evolution.plugins.face:invalid-image-size", NULL, NULL); } else if (height != 48 || width != 48) { GdkPixbuf *copy, *scale; guchar *pixels; @@ -242,7 +242,7 @@ prepare_image (const gchar *image_filename, gchar **file_contents, gsize *length g_object_unref (loader); } else { if (can_claim) - e_error_run (NULL, "org.gnome.evolution.plugins.face:file-not-found", NULL, NULL); + e_alert_run_dialog_for_args (NULL, "org.gnome.evolution.plugins.face:file-not-found", NULL, NULL); } return res; -- cgit