diff options
author | Jonathon Jongsma <jonathon@quotidian.org> | 2009-12-08 00:19:37 +0800 |
---|---|---|
committer | Jonathon Jongsma <jonathon@quotidian.org> | 2009-12-08 02:25:23 +0800 |
commit | 31204c9cc21ec32c8006124cf18763161daa99d2 (patch) | |
tree | 7e2173da211f3e844172ea0dbdfb0e87638d8e85 /mail/em-utils.c | |
parent | f20528381a13299e8d160195d4b731e10b7ed437 (diff) | |
download | gsoc2013-evolution-31204c9cc21ec32c8006124cf18763161daa99d2.tar gsoc2013-evolution-31204c9cc21ec32c8006124cf18763161daa99d2.tar.gz gsoc2013-evolution-31204c9cc21ec32c8006124cf18763161daa99d2.tar.bz2 gsoc2013-evolution-31204c9cc21ec32c8006124cf18763161daa99d2.tar.lz gsoc2013-evolution-31204c9cc21ec32c8006124cf18763161daa99d2.tar.xz gsoc2013-evolution-31204c9cc21ec32c8006124cf18763161daa99d2.tar.zst gsoc2013-evolution-31204c9cc21ec32c8006124cf18763161daa99d2.zip |
Port all error code to use GObject-ified EAlert / EAlertDialog
The changes are mainly including the e-alert-header.h header instead of just
e-alert.h. This allows us to include e-alert.h in non-UI situations when
necessary.
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r-- | mail/em-utils.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c index 3cb662e5bd..ca824d9bbe 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -70,7 +70,7 @@ #include "e-util/e-account-utils.h" #include "e-util/e-dialog-utils.h" #include "e-util/e-alert-activity.h" -#include "e-util/e-alert.h" +#include "e-util/e-alert-dialog.h" #include "shell/e-shell.h" #include "widgets/misc/e-attachment.h" @@ -170,11 +170,11 @@ em_utils_prompt_user(GtkWindow *parent, const gchar *promptkey, const gchar *tag return TRUE; va_start(ap, arg0); - alert = e_alert_newv (tag, arg0, ap); + alert = e_alert_new_valist (tag, arg0, ap); va_end(ap); - mbox = e_alert_new_dialog (parent, alert); - e_alert_free (alert); + mbox = e_alert_dialog_new (parent, alert); + g_object_unref (alert); if (promptkey) { check = gtk_check_button_new_with_mnemonic (_("_Do not show this message again.")); @@ -322,7 +322,7 @@ em_utils_edit_filters (GtkWidget *parent) g_free (system); if (((ERuleContext *) fc)->error) { - GtkWidget *w = e_alert_new_dialog_for_args ((GtkWindow *)parent, "mail:filter-load-error", ((ERuleContext *)fc)->error, NULL); + GtkWidget *w = e_alert_dialog_new_for_args ((GtkWindow *)parent, "mail:filter-load-error", ((ERuleContext *)fc)->error, NULL); em_utils_show_error_silent (w); return; } @@ -950,7 +950,7 @@ em_utils_temp_save_part(GtkWidget *parent, CamelMimePart *part, gboolean mode) tmpdir = e_mkdtemp("evolution-tmp-XXXXXX"); if (tmpdir == NULL) { - w = e_alert_new_dialog_for_args ((GtkWindow *)parent, "mail:no-create-tmp-path", g_strerror(errno), NULL); + w = e_alert_dialog_new_for_args ((GtkWindow *)parent, "mail:no-create-tmp-path", g_strerror(errno), NULL); em_utils_show_error_silent (w); return NULL; } |