Actually, either dashes or underscores work for set_property()/ get_property() API. Perhaps we should suggest that people use underscores when using it. That way, it would be consistent with the field names.
That's my thinking too, but the reason I think it's important to know if the GTK team are phasing out direct field access is that if this _is_ their intent we ought to be reflecting it and promoting the set|get property access route. Using the hyphens to highlight the difference for now, and possibly un-exposing fields where appropriate.
- Steph
-Andrei
On Aug 6, 2006, at 2:52 AM, Christian Weiske wrote:
Steph,
I'm having problems with that leap from 'this is what properties are'
(which is known) to 'Thus, dashes in the names are ok'.
PHP would not allow the following:
echo $widget->is-realized;
but this works:
echo $widget->get_property('is-realized');
Further, I doubt that using underscores instead of dashes would be liked
by gtk.
-- Regards/MfG,
Christian Weiske
-- PHP-GTK Documentation Mailing List (http://gtk.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
__________ NOD32 1.1380 (20060125) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com