Emmanuele Bassi <eba...@linux.intel.com> writes: > On Mon, 2010-06-07 at 22:38 +0100, Rupert Swarbrick wrote: > >> static gboolean >> on_delete (ClutterStage *stage, ClutterEvent *event, gpointer data) >> { >> clutter_actor_destroy (CLUTTER_ACTOR (stage)); >> clutter_main_quit(); >> return FALSE; >> } > > try not destroying the stage and returning TRUE. right now, you're > saying "I did not handle the event" and yet you just destroyed the stage > and quit the main loop. > > you should actually use the ::destroy signal instead. > > ciao, > Emmanuele.
Thanks for the reply! I've now tried binding to the "destroy" signal and my code is still run (I put a printf/fflush to check), but now I can't get rid of the window at all, no matter which combination of clutter_actor_destroy and TRUE/FALSE I choose... Similarly, changing what happens inside the response to the "delete-event" signal, I can only get the window never to disappear! Am I missing something obvious? Rupert
pgpBIFTeUIlZO.pgp
Description: PGP signature