diff options
-rw-r--r-- | widgets/misc/ChangeLog | 6 | ||||
-rw-r--r-- | widgets/misc/e-search-bar.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index c9bfc969be..973569fb2a 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,9 @@ +2003-04-16 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 view switch. + 2003-04-15 Hans Petter Jansson <hpj@ximian.com> * e-calendar-item.c (e_calendar_item_update): Unref the metrics. diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c index dd73122f98..8d8767a7fb 100644 --- a/widgets/misc/e-search-bar.c +++ b/widgets/misc/e-search-bar.c @@ -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); } |