Styles have empty lists for style properties
Submitted by ShadowKyogre
Link to original bug (#770573)
Description
Created attachment 334399 Minimal demonstration code for the bug, PyGI
Metadata
Version tested with: 2.28.6
Compared with for expected behavior: pygtk 2.24.0
Steps to reproduce
- Get the style for a widget via calling its get_style method
- Access a style property (such as bg)
Expected Results
A list of colors containing the style
Actual Results
An empty list, making it impossible to pick up colors if they aren't assigned to a theme variable.
Why is this important?
Some old themes like Murrina Gilouche do not set GTK2 theme variables that would normally be used to detect certain states. Furthermore, GTK themes can tweak things on a per-widget basis, so this would allow a more foolproof picking up of colors in these edge cases.
Attachment 334399, "Minimal demonstration code for the bug, PyGI":
gtk2-pygi.py