Re: [gtk-list] Gtk--: Connecting to a static method?



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]