Re: gtkeditable editable property

From: Date: Fri, 01 Apr 2005 19:04:14 +0000
Subject: Re: gtkeditable editable property
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5714@lists.php.net to get a copy of this message
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

« previous php.gtk.general (#5714) next »