=?gb2312?b?UmU6tDogW2d0ay1saXN0XSBHdGstLTogQ29ubmVjdGluZyB0byBhIA==?==?gb2312?b?c3RhdGljIG1ldGhvZD8=?=





>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
>
I thought you can build a member function to call the static
function. Just like this:

class X {
        static int              foo();
        int foo_shell()  {  foo();  }
        };

connect_to_method (GtkMain::timeout(50), X, &X::foo);

Li. Wang

>--
>To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]