Re: [gtk-list] Gtk--: Connecting to a static method?
- From: Todd Dukes <tjdukes flash net>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Gtk--: Connecting to a static method?
- Date: Sun, 29 Aug 1999 09:06:27 -0500
robert_gasch@peoplesoft.com wrote:
>
> Hi,
>
> can I use connect_to_method to connect to a static
> class function? I'd like to do the following:
>
> class X {
> static int foo();
> };
>
> connect_to_method (GtkMain::timeout(50), X, &X::foo);
>
> which unfortunateley doesn't work as I can't figure out
> how to handle the 2nd argument. Is there any way I
> can use a static function for this?
>
> Thanks a lot
> --> Robert
>
> --
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
Couldn't you just use connect_to_function?
class X {
static int foo();
};
connect_to_function (GtkMain::timeout(50), &X::foo);
good luck,
Todd.
--
-----------------------------------------
Todd & Lisa Dukes
tjdukes@flash.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]