diff options
author | Jonathon Jongsma <jonathon@quotidian.org> | 2009-11-25 06:34:24 +0800 |
---|---|---|
committer | Jonathon Jongsma <jonathon@quotidian.org> | 2009-12-01 03:31:19 +0800 |
commit | 193625ae674a7dfd8a80c0ffeab390e6fcb65856 (patch) | |
tree | 625e56c715b4c8115cda20bbfdb7dfdcb18ffcd7 /filter/e-filter-datespec.c | |
parent | ae8f6d681c0512089f9259de0fd1b270396991d5 (diff) | |
download | gsoc2013-evolution-193625ae674a7dfd8a80c0ffeab390e6fcb65856.tar gsoc2013-evolution-193625ae674a7dfd8a80c0ffeab390e6fcb65856.tar.gz gsoc2013-evolution-193625ae674a7dfd8a80c0ffeab390e6fcb65856.tar.bz2 gsoc2013-evolution-193625ae674a7dfd8a80c0ffeab390e6fcb65856.tar.lz gsoc2013-evolution-193625ae674a7dfd8a80c0ffeab390e6fcb65856.tar.xz gsoc2013-evolution-193625ae674a7dfd8a80c0ffeab390e6fcb65856.tar.zst gsoc2013-evolution-193625ae674a7dfd8a80c0ffeab390e6fcb65856.zip |
port filter/ classes over to new EError API
https://bugzilla.gnome.org/show_bug.cgi?id=602963
Diffstat (limited to 'filter/e-filter-datespec.c')
-rw-r--r-- | filter/e-filter-datespec.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/filter/e-filter-datespec.c b/filter/e-filter-datespec.c index f395bf91d4..f85de14953 100644 --- a/filter/e-filter-datespec.c +++ b/filter/e-filter-datespec.c @@ -299,14 +299,17 @@ button_clicked (GtkButton *button, EFilterDatespec *fds) static gboolean filter_datespec_validate (EFilterElement *element, - GtkWindow *error_parent) + EError **error) { EFilterDatespec *fds = E_FILTER_DATESPEC (element); gboolean valid; + g_warn_if_fail (error == NULL || *error == NULL); + valid = fds->type != FDST_UNKNOWN; if (!valid) { - e_error_run (error_parent, "filter:no-date", NULL); + if (error) + *error = e_error_new ("filter:no-date", NULL); } return valid; |