aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-rule.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-10-31 07:17:04 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-10-31 07:17:04 +0800
commit4ac107769e4ac89e0b9595a6ed7a9539f4ef64fa (patch)
treed5937eeed6b6098bfd40d737e6d8a3f4759427e8 /filter/filter-rule.c
parentdd76f4c007ae749393c702a3d8b4555ec36711d3 (diff)
downloadgsoc2013-evolution-4ac107769e4ac89e0b9595a6ed7a9539f4ef64fa.tar.gz
gsoc2013-evolution-4ac107769e4ac89e0b9595a6ed7a9539f4ef64fa.tar.zst
gsoc2013-evolution-4ac107769e4ac89e0b9595a6ed7a9539f4ef64fa.zip
Pure formatting changes, no actual code changes. Since I know I'm going to
2000-10-30 Jeffrey Stedfast <fejj@helixcode.com> * 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
Diffstat (limited to 'filter/filter-rule.c')
-rw-r--r--filter/filter-rule.c4
1 files changed, 2 insertions, 2 deletions
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);