Re: Connection methods
| From: | Steph | Date: | Fri, 14 Oct 2005 18:43:54 +0000 |
| Subject: | Re: Connection methods | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-1822@lists.php.net to get a copy of this message | ||
> I think this is how things did/would work:
>
> The callback for connect called on a button might have looked like this:
>
> $button->connect('clicked', 'buttonClicked');
> function buttonClicked($widget) {}
>
> The callback for connect_object called on button a might have looked
> like this:
>
> $button->connect_object('clicked', 'buttonClicked');
> function buttonClicked() {}
This is wrong. It'd need to be something like
$button->connect_object('clicked', 'buttonClicked, $button);
- and $button could well have been $otherButton.
> The callback for connect_replace called on button a might look like this:
>
> $button->connect_replace('clicked', 'buttonClicked', $otherButton);
> function buttonClicked($otherWidget) {}
Yep, that's what I'm asking. Sorry both, it'll be easier if I just rebuild
and test but I'm on the way out the door now. Hasta manyana...