GNOME Bugzilla – Bug 695420
Crash when setting property of type object to a value with wrong type
Last modified: 2013-03-08 08:57:20 UTC
from gi.repository import Gtk button = Gtk.Button() button.props.child = 'not_an_object' Segmentation Fault
Created attachment 238351 [details] [review] Give more informative error when setting property to incorrect type
Created attachment 238352 [details] [review] Remove skipping of object property tests These were showing up as unexpected successes now that bug 675726 is fixed.
Created attachment 238353 [details] [review] Fix crash when setting property of type object to an incorrect type Add type check when marshaling an object from Python for GObject types. Add PyGObject_Type as part of the pygobject API to check for this.
Comment on attachment 238353 [details] [review] Fix crash when setting property of type object to an incorrect type Thank you!
Attachment 238351 [details] pushed as 10214ba - Give more informative error when setting property to incorrect type Attachment 238352 [details] pushed as 44587f4 - Remove skipping of object property tests Attachment 238353 [details] pushed as 2656bc4 - Fix crash when setting property of type object to an incorrect type