diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-03-23 09:24:15 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-03-23 09:24:15 +0800 |
commit | f1dc83990b487869935f4ba0c033f2c459069d01 (patch) | |
tree | ca3858ab74f27c8cfaa4e38d6daf66b260b63755 /widgets/misc | |
parent | 639d835ec0007d506988b973bf349f544adc5d7e (diff) | |
download | gsoc2013-evolution-f1dc83990b487869935f4ba0c033f2c459069d01.tar gsoc2013-evolution-f1dc83990b487869935f4ba0c033f2c459069d01.tar.gz gsoc2013-evolution-f1dc83990b487869935f4ba0c033f2c459069d01.tar.bz2 gsoc2013-evolution-f1dc83990b487869935f4ba0c033f2c459069d01.tar.lz gsoc2013-evolution-f1dc83990b487869935f4ba0c033f2c459069d01.tar.xz gsoc2013-evolution-f1dc83990b487869935f4ba0c033f2c459069d01.tar.zst gsoc2013-evolution-f1dc83990b487869935f4ba0c033f2c459069d01.zip |
Validate the filter rule.
2001-03-22 Jeffrey Stedfast <fejj@ximian.com>
* e-filter-bar.c (rule_editor_clicked): Validate the filter rule.
svn path=/trunk/; revision=8909
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/ChangeLog | 4 | ||||
-rw-r--r-- | widgets/misc/e-filter-bar.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index 3b2ebbc669..b981d5aa2d 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,7 @@ +2001-03-22 Jeffrey Stedfast <fejj@ximian.com> + + * e-filter-bar.c (rule_editor_clicked): Validate the filter rule. + 2001-03-18 Damon Chaplin <damon@ximian.com> * e-cell-date-edit.c (e_cell_date_edit_show_time_invalid_warning): diff --git a/widgets/misc/e-filter-bar.c b/widgets/misc/e-filter-bar.c index 709a0dc837..587fd6c5a6 100644 --- a/widgets/misc/e-filter-bar.c +++ b/widgets/misc/e-filter-bar.c @@ -84,9 +84,12 @@ static void rule_editor_clicked(GtkWidget *w, int button, void *data) case 0: rule = gtk_object_get_data((GtkObject *)w, "rule"); if (rule) { + if (!filter_rule_validate (rule)) + return; + item.text = rule->name; item.id = efb->menu_base + efb->menu_rules->len; - + g_ptr_array_add(efb->menu_rules, rule); rule_context_add_rule(efb->context, rule); |