Re: (no subject)
- From: Nalin Singal <nalinsingal yahoo co in>
- To: andrew openldev org, gtkmm-list gnome org
- Cc:
- Subject: Re: (no subject)
- Date: Fri, 22 Jul 2005 04:09:20 +0100 (BST)
I would suggest something like:
class A
{
void abcd() {
code
}
void onefunction() {
widget.signal().connect(SigC::slot(*this,
&A::abcd));
}
}
OR if your method has the prototype void abcd(int a);
then
widget.signal().connect(SigC::bind<int>(SigC::slot(*this,
&A::abcd), intToPass));
Hope this helps
-Nalin
--- Andrew Krause <andrew openldev org> wrote:
> 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) ()".
>
> 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?
>
> ---
> Andrew Krause
> andrew openldev org
> www.openldev.org
>
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
__________________________________________________________
How much free photo storage do you get? Store your friends 'n family snaps for FREE with Yahoo! Photos http://in.photos.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]