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 770573 - Styles have empty lists for style properties
Styles have empty lists for style properties
Status: RESOLVED OBSOLETE
Product: pygobject
Classification: Bindings
Component: gobject
2.28.x
Other Linux
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2016-08-29 18:54 UTC by ShadowKyogre
Modified: 2018-01-10 20:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Minimal demonstration code for the bug, PyGI (261 bytes, text/x-python)
2016-08-29 18:54 UTC, ShadowKyogre
Details
Minimal demonstration code for expected behavior, PyGTK (204 bytes, text/x-python)
2016-08-29 18:54 UTC, ShadowKyogre
Details

Description ShadowKyogre 2016-08-29 18:54:06 UTC
Created attachment 334399 [details]
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

1. Get the style for a widget via calling its get_style method
2. 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.
Comment 1 ShadowKyogre 2016-08-29 18:54:36 UTC
Created attachment 334400 [details]
Minimal demonstration code for expected behavior, PyGTK
Comment 2 Christoph Reiter (lazka) 2016-09-02 15:57:15 UTC
Thanks. pygi+gtk2 is not supported, but this also fails with gtk3, so keeping it open.
Comment 3 GNOME Infrastructure Team 2018-01-10 20:55:17 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/pygobject/issues/120.