After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 685091 - Add gtk_widget_style_peek_property method
Add gtk_widget_style_peek_property method
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2012-09-29 08:06 UTC by Simon Feltman
Modified: 2013-02-03 22:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add gtk_widget_style_peek_property method (7.66 KB, patch)
2012-09-29 08:13 UTC, Simon Feltman
none Details | Review

Description Simon Feltman 2012-09-29 08:06:02 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.
Comment 1 Simon Feltman 2012-09-29 08:13:31 UTC
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.
Comment 2 Matthias Clasen 2013-02-03 22:25:44 UTC
I don't think we want to add new style property api, style properties are being phased out