[evolution-patches] #54788: can't remove advanced search items property



Hi, please help to see this patch.
	
* bug description:
	http://bugzilla.ximian.com/show_bug.cgi?id=54788

* why this happen?
	This is a bug of bonobo_ui_component_set.
	Before we reset the bonobo ui component, we should remove it first. or
if the size of the old menu is larger than the new one's,  the tail of
the old menu will be still there but not be removed.

* changes
	/widgets/misc/e-search-bar.c

This patch is both for 1.5 and 1.4.
Index: e-search-bar.c
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/e-search-bar.c,v
retrieving revision 1.75
diff -u -r1.75 e-search-bar.c
--- e-search-bar.c	29 Jan 2004 01:57:56 -0000	1.75
+++ e-search-bar.c	25 Feb 2004 02:47:13 -0000
@@ -556,6 +556,7 @@
 	g_string_append (xml, "</placeholder>");
 	g_string_append (xml, "</submenu>");
 	
+	remove_bonobo_menus (esb);
 	bonobo_ui_component_set (esb->ui_component, "/menu/SearchPlaceholder", xml->str, NULL);
 
 	g_string_free (xml, TRUE);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]