This fixes the annoying BonoboUI warning that occurs at every folder switch. -- Ettore
Index: ChangeLog =================================================================== RCS file: /cvs/gnome/evolution/widgets/misc/ChangeLog,v retrieving revision 1.211 diff -u -p -r1.211 ChangeLog --- ChangeLog 11 Apr 2003 20:08:05 -0000 1.211 +++ ChangeLog 15 Apr 2003 18:50:36 -0000 @@ -1,3 +1,9 @@ +2003-04-15 Ettore Perazzoli <ettore ximian com> + + * e-search-bar.c (remove_bonobo_menus): Only do the actual remove + if the ui component actually has a container; this suppresses a + BonoboUI warning at each folder change. + 2003-04-11 Jeffrey Stedfast <fejj ximian com> * e-filter-bar.c (do_advanced): Change the border width and Index: e-search-bar.c =================================================================== RCS file: /cvs/gnome/evolution/widgets/misc/e-search-bar.c,v retrieving revision 1.67 diff -u -p -r1.67 e-search-bar.c --- e-search-bar.c 8 Apr 2003 20:44:58 -0000 1.67 +++ e-search-bar.c 15 Apr 2003 18:50:36 -0000 @@ -564,6 +564,9 @@ setup_bonobo_menus (ESearchBar *esb) static void remove_bonobo_menus (ESearchBar *esb) { + if (bonobo_ui_component_get_container (esb->ui_component) == CORBA_OBJECT_NIL) + return; + bonobo_ui_component_rm (esb->ui_component, "/menu/SearchPlaceholder/Search", NULL); }
Attachment:
signature.asc
Description: This is a digitally signed message part