[Glade-users] Holding the pointer of window
James Cameron
james.cameron@compaq.com
Thu, 18 Oct 2001 08:43:22 +1000
Axel,
The create_function returning (void *) is not a problem, the pointer is
still useful, so save it.
Also, any one of your callback functions provides a pointer to the
widget that triggered the callback. You can use that pointer in the
lookup_widget call.
Try also looking at example applications to see how they solve the same
problem; there are many different ways to solve it.
See http://quozl.netrek.org/gfocustimer/ for how I solved it.
--
James Cameron (cameron@stl.dec.com)
http://www.linux.org/ http://www.linux.org.au/ http://www.freshmeat.net/