GNOME Bugzilla – Bug 639934
Override for Gtk.Adjustment does not work if any parameters are omitted.
Last modified: 2011-01-20 10:40:28 UTC
Gtk.Adjustment() (no arguments sent to constructor) fails with error: TypeError: could not convert value for property `upper' If any of the six parameters are omitted, the default value of None is used by the override. However this fails, because GObject.__init__() cannot set None for an integer property.
Created attachment 178704 [details] [review] [GI] Modify override for Gtk.Adjustment to allow position or keyword arguments in __init__(). Previously passing no arguments was not working, because the default value for each parameter was None, and GObject.__init__() refuses to allow None for integer properties. This patch does not pass None up to GObject.__init__. Instead it does not pass the parameter at all, and uses the class's default values.