aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-input.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-11-08 07:09:45 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-11-08 07:09:45 +0800
commit59ca4efdbb7dafa2c70ee3f8f9b5bcef0153d75a (patch)
tree722db509bf8b725208a18c548293be703abaaad3 /filter/filter-input.c
parent0783b601b0f6cc882ca6d4f22a6ac052d3658ba4 (diff)
downloadgsoc2013-evolution-59ca4efdbb7dafa2c70ee3f8f9b5bcef0153d75a.tar
gsoc2013-evolution-59ca4efdbb7dafa2c70ee3f8f9b5bcef0153d75a.tar.gz
gsoc2013-evolution-59ca4efdbb7dafa2c70ee3f8f9b5bcef0153d75a.tar.bz2
gsoc2013-evolution-59ca4efdbb7dafa2c70ee3f8f9b5bcef0153d75a.tar.lz
gsoc2013-evolution-59ca4efdbb7dafa2c70ee3f8f9b5bcef0153d75a.tar.xz
gsoc2013-evolution-59ca4efdbb7dafa2c70ee3f8f9b5bcef0153d75a.tar.zst
gsoc2013-evolution-59ca4efdbb7dafa2c70ee3f8f9b5bcef0153d75a.zip
Use a GtkDialog instead of a GnomeDialog for reporting errors.
2002-11-07 Jeffrey Stedfast <fejj@ximian.com> * vfolder-rule.c (validate): Use a GtkDialog instead of a GnomeDialog for reporting errors. * rule-editor.c (rule_add): Use a GtkDialog instead of GnomeDialog. (rule_edit): Same. (add_editor_response): Use a GtkMessageDialog for the error reporting instead of a GnomeDialog. (edit_editor_response): Same. * rule-context.c (rule_context_add_rule_gui): Use a GtkDialog instead of a GnomeDialog. * filter-rule.c (validate): Use GtkDialog instead of GnomeDialog here. * filter-input.c (validate): Use GtkDialog instead of GnomeDialog here. * filter-folder.c (validate): Use GtkDialog instead of GnomeDialog here. * filter-file.c (validate): Use GtkDialog instead of GnomeDialog here. * rule-editor.c: Subclass GtkDialog instead of GnomeDialog. * filter-datespec.c (validate): Use GtkDialog instead of GnomeDialog. (button_clicked): Same. svn path=/trunk/; revision=18651
Diffstat (limited to 'filter/filter-input.c')
-rw-r--r--filter/filter-input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/filter/filter-input.c b/filter/filter-input.c
index 7f9f0072f9..4846aeefe5 100644
--- a/filter/filter-input.c
+++ b/filter/filter-input.c
@@ -168,10 +168,11 @@ validate (FilterElement *fe)
if (fi->values && !strcmp (fi->type, "regex")) {
const char *pattern;
regex_t regexpat;
+ int regerr;
pattern = fi->values->data;
- if (regcomp (&regexpat, pattern, REG_EXTENDED | REG_NEWLINE | REG_ICASE)) {
+ if ((regerr = regcomp (&regexpat, pattern, REG_EXTENDED | REG_NEWLINE | REG_ICASE))) {
size_t reglen;
char *regmsg;
@@ -191,6 +192,7 @@ validate (FilterElement *fe)
pattern, regmsg);
gtk_dialog_run ((GtkDialog *) dialog);
+ gtk_widget_destroy (dialog);
g_free (regmsg);
valid = FALSE;