aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-hdrs.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-04-28 14:38:55 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-04-28 14:38:55 +0800
commit9e7d28c8bc1c14cbb627f0375a60c312c5569536 (patch)
tree1608bdedc6d7e8583767c660629e4c4a0c50e03c /composer/e-msg-composer-hdrs.c
parent6674bdd55b8b29b1bde4b032f6933dfcfb967107 (diff)
downloadgsoc2013-evolution-9e7d28c8bc1c14cbb627f0375a60c312c5569536.tar.gz
gsoc2013-evolution-9e7d28c8bc1c14cbb627f0375a60c312c5569536.tar.zst
gsoc2013-evolution-9e7d28c8bc1c14cbb627f0375a60c312c5569536.zip
** Changed error messages to EError.
2004-04-28 Not Zed <NotZed@Ximian.com> ** Changed error messages to EError. svn path=/trunk/; revision=25652
Diffstat (limited to 'composer/e-msg-composer-hdrs.c')
-rw-r--r--composer/e-msg-composer-hdrs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c
index d9c444dc3b..5d23e385e0 100644
--- a/composer/e-msg-composer-hdrs.c
+++ b/composer/e-msg-composer-hdrs.c
@@ -51,6 +51,8 @@
#include <gal/e-text/e-entry.h>
+#include "widgets/misc/e-error.h"
+
#include <camel/camel.h>
#include "e-msg-composer-hdrs.h"
#include "mail/mail-config.h"
@@ -266,7 +268,7 @@ static void
account_removed_cb (EAccountList *accounts, EAccount *account, EMsgComposerHdrs *hdrs)
{
struct _EMsgComposerHdrsPrivate *priv = hdrs->priv;
- GtkWidget *item, *omenu, *toplevel, *dialog;
+ GtkWidget *item, *omenu, *toplevel;
EAccount *acnt;
GSList *node;
@@ -302,10 +304,8 @@ account_removed_cb (EAccountList *accounts, EAccount *account, EMsgComposerHdrs
toplevel = gtk_widget_get_toplevel ((GtkWidget *) hdrs);
gtk_widget_set_sensitive (toplevel, FALSE);
- dialog = gtk_message_dialog_new ((GtkWindow *) toplevel, GTK_DIALOG_MODAL |
- GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_MESSAGE_WARNING, GTK_BUTTONS_OK, "%s",
- _("You need to configure an account before you can compose mail."));
+ /* FIXME: this should offer a 'configure account' button, can we do that? */
+ e_error_run((GtkWindow *)toplevel, "mail-composer:all-accounts-deleted", NULL);
}
}
}