diff options
author | Pavel Holejsovsky <pavel.holejsovsky@gmail.com> | 2011-08-02 07:41:54 +0200 |
---|---|---|
committer | Pavel Holejsovsky <pholejs@src.gnome.org> | 2011-08-11 16:26:14 +0200 |
commit | af0cca3b01d852c7e3afd22a57e5163b2e8885bd (patch) | |
tree | 29e51506ff2822dfc85281a39b31ac6d61abfa20 /giscanner/ast.py | |
parent | d19fcd098ed69d9216efbf68fc8ae4ba57d09638 (diff) | |
download | gobject-introspection-af0cca3b01d852c7e3afd22a57e5163b2e8885bd.tar.gz |
Automatically turn Gdk.Rectangle gtype into cairo.RectangleInt
Gdk.Rectangle is 'boxed alias', which is not currently weel supported
by g-i. Work around by transforming Gdk.Rectangle gtype into
cairo.RectangleInt.
https://bugzilla.gnome.org/show_bug.cgi?id=655423
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r-- | giscanner/ast.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py index 90605194..d4780f9e 100644 --- a/giscanner/ast.py +++ b/giscanner/ast.py @@ -99,6 +99,13 @@ in contrast to the other create_type() functions.""" bare_utf8.ctype = None return Array(None, bare_utf8, ctype=None, gtype_name=gtype_name, is_const=False) + + # Workaround for Gdk.Rectangle being boxed alias for + # cairo.RectangleInt. G-I does not support boxing of aliases. + # See https://bugzilla.gnome.org/show_bug.cgi?id=655423 + if gtype_name == 'GdkRectangle': + gtype_name = 'CairoRectangleInt' + return cls(gtype_name=gtype_name) def get_giname(self): |