aboutsummaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorJonathon Jongsma <jonathon@quotidian.org>2009-12-08 00:19:37 +0800
committerJonathon Jongsma <jonathon@quotidian.org>2009-12-08 02:25:23 +0800
commit31204c9cc21ec32c8006124cf18763161daa99d2 (patch)
tree7e2173da211f3e844172ea0dbdfb0e87638d8e85 /filter
parentf20528381a13299e8d160195d4b731e10b7ed437 (diff)
downloadgsoc2013-evolution-31204c9cc21ec32c8006124cf18763161daa99d2.tar.gz
gsoc2013-evolution-31204c9cc21ec32c8006124cf18763161daa99d2.tar.zst
gsoc2013-evolution-31204c9cc21ec32c8006124cf18763161daa99d2.zip
Port all error code to use GObject-ified EAlert / EAlertDialog
The changes are mainly including the e-alert-header.h header instead of just e-alert.h. This allows us to include e-alert.h in non-UI situations when necessary.
Diffstat (limited to 'filter')
-rw-r--r--filter/e-filter-rule.c2
-rw-r--r--filter/e-rule-context.c4
-rw-r--r--filter/e-rule-editor.c6
3 files changed, 6 insertions, 6 deletions
diff --git a/filter/e-filter-rule.c b/filter/e-filter-rule.c
index 61d6270ab1..f1ecf496ba 100644
--- a/filter/e-filter-rule.c
+++ b/filter/e-filter-rule.c
@@ -30,7 +30,7 @@
#include <gtk/gtk.h>
#include <glib/gi18n.h>
-#include "e-util/e-alert.h"
+#include "e-util/e-alert-dialog.h"
#include "e-filter-rule.h"
#include "e-rule-context.h"
diff --git a/filter/e-rule-context.c b/filter/e-rule-context.c
index 2ad1acc3c2..96bc845500 100644
--- a/filter/e-rule-context.c
+++ b/filter/e-rule-context.c
@@ -40,7 +40,7 @@
#include <libedataserver/e-xml-utils.h>
-#include "e-util/e-alert.h"
+#include "e-util/e-alert-dialog.h"
#include "e-util/e-xml-utils.h"
#include "e-filter-code.h"
@@ -96,7 +96,7 @@ new_rule_response (GtkWidget *dialog,
if (!e_filter_rule_validate (rule, &alert)) {
e_alert_run_dialog (GTK_WINDOW (dialog), alert);
- e_alert_free (alert);
+ g_object_unref (alert);
}
if (e_rule_context_find_rule (context, rule->name, rule->source)) {
diff --git a/filter/e-rule-editor.c b/filter/e-rule-editor.c
index c6170f09e8..3cb148e5aa 100644
--- a/filter/e-rule-editor.c
+++ b/filter/e-rule-editor.c
@@ -31,7 +31,7 @@
#include <glib/gi18n.h>
-#include "e-util/e-alert.h"
+#include "e-util/e-alert-dialog.h"
#include "e-util/e-util-private.h"
#include "e-util/e-util.h"
@@ -146,7 +146,7 @@ add_editor_response (GtkWidget *dialog, gint button, ERuleEditor *editor)
EAlert *alert = NULL;
if (!e_filter_rule_validate (editor->edit, &alert)) {
e_alert_run_dialog (GTK_WINDOW (dialog), alert);
- e_alert_free (alert);
+ g_object_unref (alert);
return;
}
@@ -294,7 +294,7 @@ edit_editor_response (GtkWidget *dialog, gint button, ERuleEditor *editor)
EAlert *alert = NULL;
if (!e_filter_rule_validate (editor->edit, &alert)) {
e_alert_run_dialog (GTK_WINDOW (dialog), alert);
- e_alert_free (alert);
+ g_object_unref (alert);
return;
}