aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-vfolder.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-vfolder.c')
-rw-r--r--mail/mail-vfolder.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c
index 9fed82744f..4fabc848c0 100644
--- a/mail/mail-vfolder.c
+++ b/mail/mail-vfolder.c
@@ -600,7 +600,7 @@ done:
const gchar *data_dir;
gchar *user;
- dialog = e_error_new (e_shell_get_active_window (NULL), "mail:vfolder-updated", changed->str, uri, NULL);
+ dialog = e_error_new_dialog_for_args (e_shell_get_active_window (NULL), "mail:vfolder-updated", changed->str, uri, NULL);
em_utils_show_info_silent (dialog);
data_dir = em_utils_get_data_dir ();
@@ -1094,7 +1094,7 @@ vfolder_edit_rule(const gchar *uri)
GtkWidget *w;
/* TODO: we should probably just create it ... */
- w = e_error_new (e_shell_get_active_window (NULL), "mail:vfolder-notexist", uri, NULL);
+ w = e_error_new_dialog_for_args (e_shell_get_active_window (NULL), "mail:vfolder-notexist", uri, NULL);
em_utils_show_error_silent (w);
}
@@ -1109,14 +1109,16 @@ new_rule_clicked(GtkWidget *w, gint button, gpointer data)
const gchar *data_dir;
gchar *user;
EFilterRule *rule = g_object_get_data((GObject *)w, "rule");
+ EError *error = NULL;
- if (!e_filter_rule_validate (rule, GTK_WINDOW (w))) {
- /* no need to popup a dialog because the validate code does that. */
+ if (!e_filter_rule_validate (rule, &error)) {
+ e_error_run_dialog (GTK_WINDOW (w), error);
+ e_error_free (error);
return;
}
if (e_rule_context_find_rule ((ERuleContext *)context, rule->name, rule->source)) {
- e_error_run ((GtkWindow *)w, "mail:vfolder-notunique", rule->name, NULL);
+ e_error_run_dialog_for_args ((GtkWindow *)w, "mail:vfolder-notunique", rule->name, NULL);
return;
}