From 4ac107769e4ac89e0b9595a6ed7a9539f4ef64fa Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 30 Oct 2000 23:17:04 +0000 Subject: Pure formatting changes, no actual code changes. Since I know I'm going to 2000-10-30 Jeffrey Stedfast * filter-input.c: * filter-option.c: * filter-part.c: Pure formatting changes, no actual code changes. Since I know I'm going to get flamed for this, I'm sorry but I'll probably have to modify code in these files and it's easier if the code is quickly readable by me. * filter-rule.c (get_widget): Set the "remove" button insensitive for <= 1 instead of == 1. svn path=/trunk/; revision=6283 --- filter/filter-rule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'filter/filter-rule.c') diff --git a/filter/filter-rule.c b/filter/filter-rule.c index 37afe15518..51e474aa72 100644 --- a/filter/filter-rule.c +++ b/filter/filter-rule.c @@ -448,7 +448,7 @@ less_parts (GtkWidget *button, struct _rule_data *data) gtk_container_remove (GTK_CONTAINER (data->parts), w); /* if there's only 1 criterion, we can't remove anymore so set insensitive */ - if (g_list_length (data->fr->parts) == 1) + if (g_list_length (data->fr->parts) <= 1) gtk_widget_set_sensitive (button, FALSE); } @@ -574,7 +574,7 @@ get_widget (FilterRule *fr, struct _RuleContext *f) gtk_box_pack_start (GTK_BOX (hbox), remove, FALSE, FALSE, 3); /* if we only have 1 criterion, then we can't remove any more so disable this */ - if (g_list_length (fr->parts) == 1) + if (g_list_length (fr->parts) <= 1) gtk_widget_set_sensitive (remove, FALSE); gtk_box_pack_end (GTK_BOX (hbox), omenu, FALSE, FALSE, 0); -- cgit