Re: Destroying a view
- From: Maciej Stachowiak <mjs eazel com>
- To: ERDI Gergo <cactus cactus rulez org>
- Cc: gnome-components-list gnome org
- Subject: Re: Destroying a view
- Date: 20 Apr 2000 19:07:28 -0700
ERDI Gergo <cactus@cactus.rulez.org> writes:
> How am I supposed to destroy a Bonobo view?
>
> Here's what I'm currently doing (as you can see in bonobo-hello):
>
> BonoboViewFrame *view = the_view_I_want_to_delete ();
> gtk_container_remove (GTK_CONTAINER (component->views_hbox),
> bonobo_view_frame_get_wrapper (view));
> bonobo_object_unref (BONOBO_OBJECT (view));
>
> However, this sometimes crashes, and always leaves an ugly empty rectangle
> on the screen where the view was.
I think you are supposed to unref destroy the view_frame. But this has
its own probelms. See my post about circular references; it applies
equally to Views.
- Maciej
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]