I've noticed that g_signal_connect() refuses to take functions declared in classes as the callback argument. Is there a way to get around this?
Thanks
Skarr
I've noticed that g_signal_connect() refuses to take functions declared in classes as the callback argument. Is there a way to get around this?
Thanks
Skarr
Since functions are per instance, you need to create a static function. This static function can take 'this' as an argument and then call this->function_you_want_it_to_call, if that works (I havn't looked at the functin you are asking about). But because the function you are askig it to use is part of an INSTANCE variable, you cannot pass it as a callback function.