GNOME Bugzilla – Bug 668356
Can not access to gpointer values inside a struct
Last modified: 2012-02-10 08:06:55 UTC
Python stop with:
SystemError: NULL result without error in PyObject_Call
when trying to access an attribute of a struct that is a gpointer.
In attachment a simple script example.
Created attachment 205710 [details]
Created attachment 205772 [details] [review]
Here is a patch that fix the issue.
Created attachment 205828 [details] [review]
A better patch that takes care of increasing reference counter when object is set to a gpointer.
Created attachment 205835 [details] [review]
New patch that increase/decrease the right objects.
Created attachment 205838 [details]
A test script using TreeView and inherited TreeModel
This test script runs now with the patch applied.
Comment on attachment 205835 [details] [review]
Could you add a test case covering this to the test suite? Thanks!
Created attachment 206072 [details] [review]
Patch with test suite
Here is the patch with test suite.
Thanks for this! I took the liberty of moving the test case from test_overrides (it's not related to overrides) to test_everything.py, and use a GValue instead (to avoid pulling in GTK there):