Accessing GtkStyle of TreeView triggers Stack overflow protection and returns empty array
Submitted by Izidor Matušov
Link to original bug (#688244)
Description
I have a following snippet working in PyGTK:
<code>
import gtk gtk.TreeView().get_style().text[gtk.STATE_INSENSITIVE].to_string() '#753075307530'
</code>
PyGObject version:
<code>
from gi.repository import Gtk Gtk.TreeView().get_style().text[Gtk.StateType.INSENSITIVE].to_string()
** (.:11505): CRITICAL **: Stack overflow protection. Can't copy array element into GIArgument.
Traceback (most recent call last):
File "<stdin>
", line 1, in <module>
IndexError: list index out of range
Gtk.TreeView().get_style().text
** (.:11505): CRITICAL **: Stack overflow protection. Can't copy array element into GIArgument.
[]
</code>