|
From: gnome-perl (bugzilla.gnome.o. <bug...@gn...> - 2011-10-24 19:33:58
|
https://bugzilla.gnome.org/show_bug.cgi?id=662265 gnome-perl | Glib | unspecified --- Comment #4 from Torsten Schoenfeld <kaf...@gm...> 2011-10-24 19:33:45 UTC --- (In reply to comment #3) > I'm wrapping the OSCATS library (http://code.google.com/p/oscats), which > includes an element param spec for the array-valued properties > (#GParamSpecValueArray.element_spec), so the expected type for the elements of > is known, at least at the point at which the property information has been > accessed---such as in: I see. (But note that element_spec is documented as allowing NULL.) > GObject.xs:g_object_new() > GObject.xs:init_property_value() > GParamSpec.xs:g_param_value_validate() > GParamSpec.xs:g_param_values_cmp() Yeah, gperl_value_from_sv is not among them. I guess we need to alter Glib::Object::set_property to somehow cooperate with init_property_value such that gperl_value_from_sv knows the expected element type when it encounters a boxed of type G_TYPE_VALUE_ARRAY. That won't cover G_TYPE_VALUE_ARRAY arguments to signals or similar, but I don't see how to handle that automatically. -- Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. |