GNOME Bugzilla – Bug 685091
Add gtk_widget_style_peek_property method
Last modified: 2013-02-03 22:25:44 UTC
This is needed for introspection based bindings as gtk_widget_style_get_property is un-usable due to the value argument being "inout". The style_get_property method requires the value to be an initialized GValue. This is an issue because from within python GValue is not exposed or used since values are converted automatically to and from GValue to native types. I assume this is the case with other introspection based bindings as well. A similar issue exists with gtk_container_get_child_property: https://bugzilla.gnome.org/show_bug.cgi?id=652941 However, there is not workaround I can find in the case of style_get_property.
Created attachment 225374 [details] [review] Add gtk_widget_style_peek_property method This adds a peek method which does not require the input GValue to be initialized. This can then work as an out only argument for introspection based bindings. Also fixed gtk_widget_style_get_property annotation to "inout" (although it is still useless in python). Unittest for the new method included.
I don't think we want to add new style property api, style properties are being phased out