Re: Connection methods
| From: | Pablo Dall'Oglio | Date: | Fri, 14 Oct 2005 11:56:10 +0000 |
| Subject: | Re: Connection methods | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-1812@lists.php.net to get a copy of this message | ||
So, the official connect' methods will be:
connect and connect_after (passing the object as first param)
connect_simple and connect_simple_after (do not passing)
is it right ?
best regards
Pablo
On Qui, 2005-10-13 at 21:05 -0700, Andrei Zmievski wrote:
> I've implemented the new connection method connect_simple() and
> deprecated connect_object(), which will still work but issue a
> notice. Now, do we really need connect_replace()? This is the method
> that will replace the signal widget parameter with a user supplied
> one, e.g.:
>
> $drawing_area->connect_replace('button_press_event', 'replace',
> $window, array(1,2));
>
> function replace($myparam, $event, $userarg)
> {
> /* $myparam is $window and $userarg is array(1,2) */
> }
>
> Is this useful at all?
>
> -Andrei
>
--
:: Pablo Dall'Oglio
:: www.solis.coop.br - Lajeado, RS - Brasil
:: www.dalloglio.net - Personal Home Page
:: The software is free, but the work isn't.