Re: libglade and signals
| From: | Andrei Zmievski | Date: | Thu, 29 Mar 2001 17:35:34 +0000 |
| Subject: | Re: libglade and signals | ||
| References: | 1 2 3 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-1196@lists.php.net to get a copy of this message | ||
On Thu, 29 Mar 2001, Iuri Fiedoruk wrote:
> I have one doubt about this, how can I pass args on glade?
> I have a function that can receive 1, 2, 3, 4 dependingo on what object
> called the function. But seems like I can't send a argument by using glade.
$foo->signal_autoconnect('test' => array('test', 1, 2, 3, $obj));
Basically, if you don't specify the handler mapping as the argument to
signal_autoconnect() it will attempt to discover whether a function
named the same as the handler you specified in Glade exists. If you do
specify it, then it will look up the mapping entry by the handler name,
and the value it finds should be an array of your callback plus any
additional arguments.
-Andrei
It is commonly the case with technologies that you can get
the best insight about how they work by watching them fail.
-- Neal Stephenson