Re: gtk::input_add
| From: | Steph | Date: | Fri, 06 Jul 2001 09:38:14 +0000 |
| Subject: | Re: gtk::input_add | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-2066@lists.php.net to get a copy of this message | ||
quick question - would that work for a php function?
----- Original Message -----
From: "Andrei Zmievski" <andrei@ispi.net>
To: "Mark Leavy" <MarkL@Linux2001.org>; <php-gtk@lists.php.net>
Sent: Friday, July 06, 2001 3:01 AM
Subject: Re: [PHP-GTK] gtk::input_add
At 12:31 AM 7/6/01 +0100, Mark Leavy wrote:
>Hi,
> Got a problem..
>
> using gtk::input_add($fp,GDK_INPUT_READ,'somefunc',null) works
> fine but i'd like somefunc to be a class function and
> gtk::input_add($fp,GDK_INPUT_READ,'$someclass->function',null) doesn't work
> :(
>
> "Unable to call input callback $someclass->function"
>
> Any solutions..i've tried a few obvious possibilities with no
> luck..i suspect a short fall in gtk itself :)
To call a class method, pass it as array($someclass, 'function').
-Andrei
--
PHP GTK Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net
For additional commands, e-mail: php-gtk-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net