Re: gtk::input_add

From: Date: Thu, 05 Jul 2001 23:56:58 +0000
Subject: Re: gtk::input_add
References: 1 2  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-2060@lists.php.net to get a copy of this message
Yup, Basically..(edited for ease of use :)) <?php $fp = $irc = new irc(); gtk::input_add($fp,GDK_INPUT_ADD,'$irc->read',null); gtk::main(); ?> There's some other non-affecting stuff in there but that's the problem bit. The error suggest that it's looking for a function actually called $irc->read .. even if i remove the ' 's. On Fri, 6 Jul 2001 00:45:16 +0100 "Steph" <Steph.Fox@btinternet.com> wrote: > is $someclass declared as global at this point? > > ----- Original Message ----- > From: "Mark Leavy" <MarkL@Linux2001.org> > To: <php-gtk@lists.php.net> > Sent: Friday, July 06, 2001 12:31 AM > Subject: [PHP-GTK] gtk::input_add > > > 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 :) > > Thanks > MarkL > > -- > 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 > >

« previous php.gtk (#2060) next »