diff options
author | Not Zed <NotZed@Ximian.com> | 2004-04-28 14:39:25 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-04-28 14:39:25 +0800 |
commit | e23cf1ca36bcf886bcac15545166eff0e930a4bd (patch) | |
tree | 22462408dc2fe4da0306bb472cdd6239d739b650 /mail/mail-component.c | |
parent | 9e7d28c8bc1c14cbb627f0375a60c312c5569536 (diff) | |
download | gsoc2013-evolution-e23cf1ca36bcf886bcac15545166eff0e930a4bd.tar.gz gsoc2013-evolution-e23cf1ca36bcf886bcac15545166eff0e930a4bd.tar.zst gsoc2013-evolution-e23cf1ca36bcf886bcac15545166eff0e930a4bd.zip |
** Changed error messages to use EError.
2004-04-28 Not Zed <NotZed@Ximian.com>
** Changed error messages to use EError.
svn path=/trunk/; revision=25653
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r-- | mail/mail-component.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/mail/mail-component.c b/mail/mail-component.c index 05ca8cfb5a..6227f113e0 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -45,6 +45,7 @@ #include "em-migrate.h" #include "widgets/misc/e-info-label.h" +#include "widgets/misc/e-error.h" #include "filter/rule-context.h" #include "mail-config.h" @@ -57,6 +58,7 @@ #include "mail-send-recv.h" #include "mail-session.h" #include "mail-offline-handler.h" +#include "message-list.h" #include "e-activity-handler.h" #include "shell/e-user-creatable-items-handler.h" @@ -68,7 +70,6 @@ #include <gtk/gtklabel.h> #include <e-util/e-mktemp.h> -#include <e-util/e-dialog-utils.h> #include <gal/e-table/e-tree.h> #include <gal/e-table/e-tree-memory.h> @@ -616,20 +617,9 @@ impl_requestQuit(PortableServer_Servant servant, CORBA_Environment *ev) folder = mc_default_folders[MAIL_COMPONENT_FOLDER_OUTBOX].folder; if (folder != NULL && camel_folder_get_message_count(folder) != 0 - && camel_session_is_online(session)) { - GtkWidget *dialog; - guint resp; - - /* FIXME: HIG? */ - dialog = gtk_message_dialog_new(NULL, 0, GTK_MESSAGE_INFO, GTK_BUTTONS_YES_NO, - _("You have unsent messages, do you wish to quit anyway?")); - gtk_dialog_set_default_response((GtkDialog *)dialog, GTK_RESPONSE_NO); - resp = gtk_dialog_run((GtkDialog *)dialog); - gtk_widget_destroy(dialog); - - if (resp != GTK_RESPONSE_YES) - return FALSE; - } + && camel_session_is_online(session) + && e_error_run(NULL, "mail:exit-unsaved", NULL) != GTK_RESPONSE_YES) + return FALSE; return TRUE; } |