Re: gtk::input_add

From: Date: Fri, 06 Jul 2001 02:01:45 +0000
Subject: Re: gtk::input_add
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-2064@lists.php.net to get a copy of this message
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

« previous php.gtk (#2064) next »