[765] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] callbacks and classes

daemon@ATHENA.MIT.EDU (Jeff)
Tue Aug 19 02:40:57 1997

To: gtk-list@redhat.com
From: Jeff <schizm@pc-4374.bc.rogers.wave.ca>
Date: 18 Aug 1997 23:46:55 -0700
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


I am defining callbacks in the menu factory, and i want to declare the
callbacks as members of a class. (tClass.ButtonCallback) for example,
however these functions must be declared static in order for them
to be handled as callbacks....otherwise it complains that I am calling
the function with (tClass::) instead of void(*)...(and i cant cast it)

I dont want to have to declare the function static, because then I 
will have to declare all member variables etc of my class as static as
well (the instance of tClass isnt seen from the class definition file)...

whats my best way around this ? 

thanks

Jeff

--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post