GNOME Bugzilla – Bug 749625
TypeError: argument allocation: Expected Gdk.Rectangle, but got gi.repository.cairo.RectangleInt
Last modified: 2015-05-31 14:29:38 UTC
The following errors out on jhbuild trunk (gtk+, glib, gobject-introspection, pygobject) from gi.repository import Gtk class A(Gtk.Window): def do_size_allocate(self, *args): return Gtk.Window.do_size_allocate(self, *args) A().show() TypeError: argument allocation: Expected Gdk.Rectangle, but got gi.repository.cairo.RectangleInt ebassi pointed to some recent bug reports/changes and his suggested change fixes the above but I haven't looked into it any further. <ebassi> https://bugzilla.gnome.org/show_bug.cgi?id=748832 <ebassi> And: https://bugzilla.gnome.org/show_bug.cgi?id=748833 <ebassi> pygobject does some overriding of its own on GdkRectangle as well <ebassi> The original issue: https://bugzilla.gnome.org/show_bug.cgi?id=723394 <ebassi> lazka: I think pygobject should remove this: <ebassi> from gi.repository import cairo as _cairo <ebassi> Rectangle = _cairo.RectangleInt <ebassi> From the Gdk.py override
Created attachment 304313 [details] [review] patch Fix attached.
Review of attachment 304313 [details] [review]: LGTM, thanks!
Thanks https://git.gnome.org/browse/pygobject/commit/?id=7a3bb6971f22accd25e987496d377e1879f6e1ba