diff options
author | Jonathon Jongsma <jonathon@quotidian.org> | 2009-11-25 07:35:39 +0800 |
---|---|---|
committer | Jonathon Jongsma <jonathon@quotidian.org> | 2009-12-01 03:31:19 +0800 |
commit | ae906bbae5b053fad7f5425c242530e33f589f68 (patch) | |
tree | 31b46cdbdd341dadcdbd857fb0fabc3e87a798ec /mail/em-utils.c | |
parent | ac1f847f7b40b3a0f6ed00dedd2eb2b0f23b5027 (diff) | |
download | gsoc2013-evolution-ae906bbae5b053fad7f5425c242530e33f589f68.tar.gz gsoc2013-evolution-ae906bbae5b053fad7f5425c242530e33f589f68.tar.zst gsoc2013-evolution-ae906bbae5b053fad7f5425c242530e33f589f68.zip |
port mail/ to use new EError API
https://bugzilla.gnome.org/show_bug.cgi?id=602963
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r-- | mail/em-utils.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c index 245ab818e1..7714742a30 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -157,15 +157,19 @@ em_utils_prompt_user(GtkWindow *parent, const gchar *promptkey, const gchar *tag va_list ap; gint button; GConfClient *gconf = mail_config_get_gconf_client(); + EError *error = NULL; if (promptkey && !gconf_client_get_bool(gconf, promptkey, NULL)) return TRUE; va_start(ap, arg0); - mbox = e_error_newv(parent, tag, arg0, ap); + error = e_error_newv (tag, arg0, ap); va_end(ap); + mbox = e_error_new_dialog (parent, error); + e_error_free (error); + if (promptkey) { check = gtk_check_button_new_with_mnemonic (_("_Do not show this message again.")); gtk_container_set_border_width((GtkContainer *)check, 12); @@ -312,7 +316,7 @@ em_utils_edit_filters (GtkWidget *parent) g_free (system); if (((ERuleContext *) fc)->error) { - GtkWidget *w = e_error_new((GtkWindow *)parent, "mail:filter-load-error", ((ERuleContext *)fc)->error, NULL); + GtkWidget *w = e_error_new_dialog_for_args ((GtkWindow *)parent, "mail:filter-load-error", ((ERuleContext *)fc)->error, NULL); em_utils_show_error_silent (w); return; } @@ -940,7 +944,7 @@ em_utils_temp_save_part(GtkWidget *parent, CamelMimePart *part, gboolean mode) tmpdir = e_mkdtemp("evolution-tmp-XXXXXX"); if (tmpdir == NULL) { - w = e_error_new((GtkWindow *)parent, "mail:no-create-tmp-path", g_strerror(errno), NULL); + w = e_error_new_dialog_for_args ((GtkWindow *)parent, "mail:no-create-tmp-path", g_strerror(errno), NULL); em_utils_show_error_silent (w); return NULL; } |