Destroying a view



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.


-- 
   .--= ULLA! =----------------------------.  finger cactus@cactus.rulez.org
   \      http://cactus.rulez.org           \   for PGP public key
    `----------= cactus@cactus.rulez.org =--'
Vacsora nem elérhetô. (M)egszakít, (Ú)jrapróbálkozik, (P)izza





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