Re: gtk::input_add

From: Date: Fri, 06 Jul 2001 00:07:12 +0000
Subject: Re: gtk::input_add
References: 1 2 3  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-2062@lists.php.net to get a copy of this message
Well yeah it will do, those ' ' aren't essential. Basically you need to get a global handle together for the function & call that. (If Andrei's not around, Markus is good at that sort of thing ... I ain't ;) ----- Original Message ----- From: "Mark Leavy" <Mark@Bp2Bp.com> To: <php-gtk@lists.php.net> Sent: Friday, July 06, 2001 12:56 AM Subject: Re: [PHP-GTK] gtk::input_add 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 > > -- 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 (#2062) next »