[9315] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: gtk_signal_connect incompatible with C++?
daemon@ATHENA.MIT.EDU (James Bailie)
Thu Oct 15 01:27:44 1998
From: James Bailie <jbailie@wwdc.com>
To: gtk-list@redhat.com
In-Reply-To: Your message of "Tue, 13 Oct 1998 06:20:02 -0000."
<3622F112.2698E84C@nexo.es>
Date: Thu, 15 Oct 1998 01:19:16 -0400
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
David Abilleira Freijeiro writes:
> The solution. Functions to be passed to gtk_signal_connect must be non
>object´s function or static object´s function. If you define a method as
>static it can read/write static members in the class, and cant´t
>read/write normal members of which there are a copy in each instance or
>object. Due to this static method doesn´t have this argument.
I just make my callbacks friends of the classes they need access to, be
done with it.
--
James Bailie
http://www.wwdc.com/~jbailie
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null