diff options
author | Milan Crha <mcrha@redhat.com> | 2012-01-26 18:29:57 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-01-26 18:29:57 +0800 |
commit | f26ec61bcec407e2cfb9d765233564b1b1edf876 (patch) | |
tree | f1bfb16fb9f17c8c1bad0c0052cd227f4159f7bf /mail | |
parent | 1e0bac934f4f4a746feb600d37d455eaed6974a9 (diff) | |
download | gsoc2013-evolution-f26ec61bcec407e2cfb9d765233564b1b1edf876.tar.gz gsoc2013-evolution-f26ec61bcec407e2cfb9d765233564b1b1edf876.tar.zst gsoc2013-evolution-f26ec61bcec407e2cfb9d765233564b1b1edf876.zip |
Bug #668634 - Warn user with folder create error
Diffstat (limited to 'mail')
-rw-r--r-- | mail/em-folder-utils.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c index 1350df7c7b..443af5b14a 100644 --- a/mail/em-folder-utils.c +++ b/mail/em-folder-utils.c @@ -42,6 +42,7 @@ #include "e-util/e-mktemp.h" #include "e-util/e-alert-dialog.h" +#include "e-util/e-dialog-utils.h" #include "em-vfolder-rule.h" @@ -478,7 +479,7 @@ em_folder_utils_copy_folder (GtkWindow *parent, &cfd->source_store, &cfd->source_folder_name, &error); if (error != NULL) { - g_warning ("%s", error->message); + e_notice (parent, GTK_MESSAGE_ERROR, "%s", error->message); g_error_free (error); g_free (cfd); return; @@ -521,7 +522,7 @@ new_folder_created_cb (CamelStore *store, /* FIXME Use an EActivity here. */ if (error != NULL) { - g_warning ("%s", error->message); + e_notice (NULL, GTK_MESSAGE_ERROR, "%s", error->message); g_error_free (error); } else if (context->folder_tree != NULL) { @@ -639,7 +640,7 @@ em_folder_utils_create_folder (GtkWindow *parent, if (error != NULL) { g_warn_if_fail (store == NULL); g_warn_if_fail (folder_name == NULL); - g_warning ("%s", error->message); + e_notice (parent, GTK_MESSAGE_ERROR, "%s", error->message); g_error_free (error); goto exit; } |