GNOME Bugzilla – Bug 621911
[gi] don't redefine special methods on every prototype; use inheritance
Last modified: 2010-06-17 18:05:12 UTC
Instead of defining "connect", "toString", etc, on each class prototype, only define them on the GLib.Object prototype, and let everything else just inherit them. (This makes it easier to override one of them (eg, toString) on a hierarchy of subclasses.)
Created attachment 163940 [details] [review] [gi] don't redefine special methods on every prototype; use inheritance
Review of attachment 163940 [details] [review]: This looks in general good, I'd prefer adding tests, but I think the current testsuite already tests this behavior pretty well, so as long as you've tried running the tests it should be fine to commit this.
the regression tests fail for me with or without this patch, but gnome-shell works fine with it Attachment 163940 [details] pushed as c2303db - [gi] don't redefine special methods on every prototype; use inheritance