Re: Gtk widgets in gtkmm (Previously no subject)
- From: Murray Cumming <murrayc murrayc com>
- To: andrew openldev org
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Gtk widgets in gtkmm (Previously no subject)
- Date: Thu, 21 Jul 2005 18:36:11 +0200
On Thu, 2005-07-21 at 08:22 -0700, Andrew Krause wrote:
> (Sorry about the no subject topic... in any case...)
>
> I have a c++ class that contains Gtk+ widgets. They work perfectly
> fine except for one thing. When I try to connect a signal to them,
> they throw an error saying that the function that it is connected
> to should be formatted: "void (*) ()" instead of: "void (MyClass) ()".
I think you mean that you see a compilation error.
> How can I get around this? Is there a way without requiring all
> of my functions to receive the class data and not be a part of
> the class?
You can't force a class method pointer into a function pointer without
extra state information. See the various SignalProxy_* classes in gtkmm.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]