Re: sensing window destruction



On Tue, Jun 28, 2005 at 05:03:02PM -0400, Michal Porzuczek wrote:
I was wondering how it is possible to sense when a widget is closed by
the user and send change a specific variable as a result.

Either connect to "destroy" signal, or use
g_object_weak_ref().  The handler can change a global
variable, for example.

Furthermore, is there a way other then gtk_widget_destroy to
destroy/close widget windows because this causes seg faults for me in
some occasions and in others dosen't actually close windows.

You are doing something wrong.  It may segfault if you
try to destroy already finalized widgets.  Post the code...

Yeti


--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?



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