Re: Exmple GtkContainer Code PLEASE!
| From: | Anant Narayanan | Date: | Wed, 23 May 2007 00:52:05 +0000 |
| Subject: | Re: Exmple GtkContainer Code PLEASE! | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-7828@lists.php.net to get a copy of this message | ||
Hi,
> I am trying to use set_focus_chain() on my form but PHP keep throwing this
> error:
> Fatal error: Non-static method GtkContainer::get_focus_chain() cannot be
> called statically in test.php on line 11
>
> Line 11 is like so:
> $list = GtkContainer::get_focus_chain('logon');
>
> Is my code wrong??
Yes, what widget are you trying to retrieve the focus chain of? Many
widgets are inherited from a GtkContainer. So for example:
$x = new GtkDialog();
...
$l = $x->get_focus_chain($whatever);
Cheers,
--
Anant