After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 636393 - caller-allocates not set correctly for out params of GdkRectangle
caller-allocates not set correctly for out params of GdkRectangle
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-12-03 17:44 UTC by William Jon McCann
Modified: 2015-02-07 16:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description William Jon McCann 2010-12-03 17:44:15 UTC
I tried adding an (out) annotation to gdk_screen_get_monitor_geometry() but it didn't work.  The gir showed:
          <parameter name="dest"
                     direction="out"
                     caller-allocates="0"
                     transfer-ownership="full">

I think it needs to be caller-allocates="1".
Comment 1 Colin Walters 2010-12-03 17:51:45 UTC
I think the bug here is the scanner not handling the Alias() type of Gdk.Rectangle; we see it's not an ast.Struct or ast.Union and just skip it.

A quick workaround in the annotation would be to say (out caller-allocates) explicitly.
Comment 2 André Klapper 2015-02-07 16:49:24 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]