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 787814 - Values of type Gdk.RGBA stored in Gtk.ListStore lose attributes
Values of type Gdk.RGBA stored in Gtk.ListStore lose attributes
Status: RESOLVED DUPLICATE of bug 720042
Product: pygobject
Classification: Bindings
Component: gobject
3.18.x
Other Linux
: Normal major
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2017-09-18 02:07 UTC by Reuben Rissler
Modified: 2017-09-18 11:27 UTC
See Also:
GNOME target: ---
GNOME version: 3.17/3.18


Attachments
a simple demo (189 bytes, text/x-python)
2017-09-18 02:07 UTC, Reuben Rissler
Details

Description Reuben Rissler 2017-09-18 02:07:33 UTC
Created attachment 359955 [details]
a simple demo

When you store a Gdk.RGBA value in a Gtk.ListStore the red and green value always get set to 0.0000. This is using GObject Introspection for Python2.7 or Python3.

Example:

import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk
store = Gtk.ListStore(Gdk.RGBA)
rgba = Gdk.RGBA(1, 1, 1, 1)
print rgba
store.append([rgba])
print store[0][0]
Comment 1 Reuben Rissler 2017-09-18 11:27:32 UTC

*** This bug has been marked as a duplicate of bug 720042 ***