[Glade-users] CList question



Fethiye Akbulut wrote:

So, this problem/question can be generalised as well. How can we get a hold
of to some widgets if there is no way to use the lookup_widget function
--simply because we want to be able to change a state of a widget after
receiving sometype of a signal other than GTK signals (like SIGALRM,
SIGCHLD...) and no widgets have been passed to signal handler functions.

You will need to keep track of the relevant toplevel windows somehow, so
you can easily access them if you need to. This could just be global variables,
or a list of toplevel windows.

Though I doubt it is safe to make calls to many GTK+ functions from within Unix
signal handlers. So be careful what you do.

Damon







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