Re: GtkMenu ?
| From: | Andrei Zmievski | Date: | Mon, 16 Jul 2001 18:57:10 +0000 |
| Subject: | Re: GtkMenu ? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-2221@lists.php.net to get a copy of this message | ||
On Mon, 16 Jul 2001, Jonas Delfs wrote:
> > > The situation is that i don't want to pass any arguments to
> > > newFileInst() at all... is there a way to do this?
> >
> > No, I'm sorry, that's the way it has to be. You can have the callback be
> > just a wrapper for your actual function, if you want.
>
> Can you explain?
funtion newFileCB($item)
{
$this->newFileInst();
}
function newFileInst($fileName = 'Not Named*')
{
...
}
And then specify array($this, 'newFileCB') as your callback.
-Andrei
"In My Egotistical Opinion, most people's C programs should be indented
six feet downward and covered with dirt." -- Blair P. Houghton