Should we wrap accessors for properties?



Aloha,

I'm going through the new API in gtk+ 2.14.  As usual, there are quite a few
accessors added for new properties.  For example,
gtk_calendar_get_detail_height_rows and
gtk_calendar_set_detail_height_rows for the "detail-height-rows" property of
GtkCalendar.  I wonder if we should continue to wrap those.

The new properties are automatically available via the generic property
mechanism ($object->set (foo => ...) and $object->get ('foo')).  I see two
downsides:

* Decreased visibility of the new possibilities.  There are no accessors
listed in the methods section of POD pages anymore.  The properties section
will still list the new properties, of course.

* A slight speed disadvantage of using the generic mechanism compared to
specialized accessors.

The upsides would be less work for us and a smaller size of the wrapper
library which means faster load times.

What do you all think?

-- 
Bye,
-Torsten




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]