Index: ChangeLog.pre-1-4
===================================================================
RCS file: /cvs/gnome/evolution/filter/ChangeLog.pre-1-4,v
retrieving revision 1.1
diff -u -p -r1.1 ChangeLog.pre-1-4
--- ChangeLog.pre-1-4	9 Jun 2003 17:31:00 -0000	1.1
+++ ChangeLog.pre-1-4	14 Jul 2006 11:08:24 -0000
@@ -1,3 +1,11 @@
+2006-06-14  Kirutthikaraja <kirutthikaraj@yahoo.co.in>
+	
+	** Fixes Bug #263207	
+	
+	* filter-rule.c: (button_status),(temp_ptr_to_button):
+	Added code to make the Advanced Search Remove button
+	active or inactive.
+
 2003-05-05  Jeffrey Stedfast  <fejj@ximian.com>
 
 	* filter-colour.c (format_sexp): Format the colour string in a way
Index: filter-rule.c
===================================================================
RCS file: /cvs/gnome/evolution/filter/filter-rule.c,v
retrieving revision 1.71
diff -u -p -r1.71 filter-rule.c
--- filter-rule.c	25 Jan 2006 08:35:36 -0000	1.71
+++ filter-rule.c	14 Jul 2006 11:09:45 -0000
@@ -36,6 +36,8 @@
 
 #define d(x)
 
+static int button_status=0;
+GtkWidget *temp_ptr_to_button;
 static int validate(FilterRule *);
 static int rule_eq(FilterRule *fr, FilterRule *cm);
 static xmlNodePtr xml_encode (FilterRule *);
@@ -693,9 +695,13 @@ less_parts (GtkWidget *button, struct _r
 	FilterPart *part;
 	GtkWidget *rule;
 	
-	if (g_list_length (data->fr->parts) < 2)
+	if (g_list_length (data->fr->parts) < 2) {
+		gtk_widget_set_sensitive(button,FALSE);
+		temp_ptr_to_button=button;
+		button_status=1;
 		return;
-	
+	}
+
 	rule = g_object_get_data ((GObject *) button, "rule");
 	part = g_object_get_data ((GObject *) rule, "part");
 	
@@ -724,6 +730,17 @@ attach_rule (GtkWidget *rule, struct _ru
 	gtk_table_attach (GTK_TABLE (data->parts), remove, 1, 2, row, row + 1,
 			  0, 0, 0, 0);
 	
+	if(button_status==1) {
+		gtk_widget_set_sensitive(temp_ptr_to_button,TRUE);	
+		button_status=0;
+	}
+
+	if (g_list_length (data->fr->parts) == 1) {
+	 	gtk_widget_set_sensitive(remove,FALSE);
+        	temp_ptr_to_button=remove;
+		button_status=1;				
+	}
+
 	gtk_widget_show (remove);
 }
 
