aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-attachment-bar.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-attachment-bar.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-attachment-bar.c')
-rw-r--r--composer/e-msg-composer-attachment-bar.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/composer/e-msg-composer-attachment-bar.c b/composer/e-msg-composer-attachment-bar.c
index 3cd58a9955..c8cf9b5e7b 100644
--- a/composer/e-msg-composer-attachment-bar.c
+++ b/composer/e-msg-composer-attachment-bar.c
@@ -21,7 +21,6 @@
*
*/
-
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
@@ -55,6 +54,7 @@
#include "e-util/e-gui-utils.h"
#include "e-util/e-icon-factory.h"
+#include "widgets/misc/e-error.h"
#define ICON_WIDTH 64
#define ICON_SEPARATORS " /-_"
@@ -171,22 +171,15 @@ add_from_file (EMsgComposerAttachmentBar *bar,
const char *disposition)
{
EMsgComposerAttachment *attachment;
- EMsgComposer *composer;
CamelException ex;
- GtkWidget *dialog;
camel_exception_init (&ex);
attachment = e_msg_composer_attachment_new (file_name, disposition, &ex);
if (attachment) {
add_common (bar, attachment);
} else {
- composer = E_MSG_COMPOSER (gtk_widget_get_toplevel (GTK_WIDGET (bar)));
- dialog = gtk_message_dialog_new(GTK_WINDOW(composer),
- GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,
- "%s", camel_exception_get_description (&ex));
- gtk_dialog_run(GTK_DIALOG(dialog));
- gtk_widget_destroy(dialog);
+ e_error_run((GtkWindow *)gtk_widget_get_toplevel((GtkWidget *)bar), "mail-composer:no-attach",
+ file_name, camel_exception_get_description(&ex), NULL);
camel_exception_clear (&ex);
}
}