From aedb33b3af7c5c01aa220fe3ab51a111a31c8922 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 22 Mar 2001 00:14:29 +0000 Subject: Validate the rule before closing. 2001-03-21 Jeffrey Stedfast * rule-context.c (new_rule_clicked): Validate the rule before closing. svn path=/trunk/; revision=8879 --- filter/rule-editor.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'filter/rule-editor.c') diff --git a/filter/rule-editor.c b/filter/rule-editor.c index 0098f959e9..4826cdf01c 100644 --- a/filter/rule-editor.c +++ b/filter/rule-editor.c @@ -190,7 +190,7 @@ add_editor_clicked (GtkWidget *dialog, int button, RuleEditor *re) switch (button) { case 0: if (!filter_rule_validate (re->edit)) { - /* FIXME: popup an error or somelthing? */ + /* no need to popup a dialog because the validate code does that. */ return; } @@ -255,7 +255,7 @@ edit_editor_clicked (GtkWidget *dialog, int button, RuleEditor *re) switch (button) { case 0: if (!filter_rule_validate (re->edit)) { - /* FIXME: popup an error or something? */ + /* no need to popup a dialog because the validate code does that. */ return; } @@ -471,4 +471,3 @@ rule_editor_construct(RuleEditor *re, RuleContext *context, GladeXML *gui, const gnome_dialog_append_buttons((GnomeDialog *)re, GNOME_STOCK_BUTTON_OK, GNOME_STOCK_BUTTON_CANCEL, 0); } - -- cgit v1.2.3