Styles have empty lists for style properties
Submitted by ShadowKyogre
Created attachment 334399 Minimal demonstration code for the bug, PyGI
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)
A list of colors containing the style
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":