Re: gtkeditable editable property
| From: | Steph | Date: | Fri, 01 Apr 2005 19:05:40 +0000 |
| Subject: | Re: gtkeditable editable property | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-5713@lists.php.net to get a copy of this message | ||
d'oh!
----- Original Message -----
From: "Scott Mattocks" <scott@crisscott.com>
To: "Steph" <steph@zend.com>
Cc: "Malk0" <malk0.phpgtk@gmail.com>; "[PHP-GTK]"
<php-gtk-general@lists.php.net>
Sent: Friday, April 01, 2005 8:04 PM
Subject: Re: [PHP-GTK] gtkeditable editable property
> Steph wrote:
> > Set widget names and make an array of $GLOBALS['editable']... add widget
> > name in when set_editable's called (via a callback that does both), take
it
> > out when it isn't (ditto), use in_array() in your callback function. job
> > done.
>
> What about set_data() and get_data()? That way the widget takes the flag
> with it every where it goes. Then you just do:
>
> if ($editable->get_data('is_editable')) {
> // Something
> }
>
> --
> Scott Mattocks
> scott@crisscott.com
> http://www.crisscott.com
> http://pear.php.net/user/scottmattocks