Static C++ methods as GTK+ callbacks



Anybody can please send a simple example that shows how to register a static
method of a class
as a callback to some of GTK+ signals?  I'm currently trying to connect
"destroy" to a static method
but then I get the program aborted at runtime, with the following message:
*** glibc detected *** double free or corruption ...

(I always used the C++ version of GTK, called gtkmm, and this is done much
simpler there).


Thanks,

Nickolai



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