summaryrefslogtreecommitdiff
path: root/gir
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-12-06 10:26:02 -0500
committerColin Walters <walters@verbum.org>2010-12-10 10:58:59 -0500
commite455454a2a843bcc2af621829ca4d129dfa13b18 (patch)
treefa218f9466aaa339a1260a2f2202efd64d755554 /gir
parentf0ee6087978e2381ab6b6a0b25705999a30183c0 (diff)
downloadgobject-introspection-e455454a2a843bcc2af621829ca4d129dfa13b18.tar.gz
cairo-1.0.gir: Un-foreign RectangleInt
cairo.RectangleInt is a very tricky case; it's (as of now) boxed in cairo-gobject. We're trying to fix a few bugs here. First, we want to make (out caller-allocates) work. In order to do that, we need to explicitly specify the fields so that the typelib has the right size. Also, add the boxed type now so that we pick up the right thing from GObject signal parameters. See history in bug 623222 and bug 636393. https://bugzilla.gnome.org/show_bug.cgi?id=636617
Diffstat (limited to 'gir')
-rw-r--r--gir/cairo-1.0.gir17
1 files changed, 16 insertions, 1 deletions
diff --git a/gir/cairo-1.0.gir b/gir/cairo-1.0.gir
index dbec19de..8473c342 100644
--- a/gir/cairo-1.0.gir
+++ b/gir/cairo-1.0.gir
@@ -27,7 +27,22 @@
<record name="FontFace" c:type="cairo_font_face_t" foreign="1"/>
<record name="ScaledFont" c:type="cairo_scaled_font_t" foreign="1"/>
<record name="Path" c:type="cairo_path_t" foreign="1"/>
- <record name="RectangleInt" c:type="cairo_rectangle_int_t" foreign="1"/>
+ <record name="RectangleInt" c:type="cairo_rectangle_int_t"
+ glib:type-name="CairoRectangleInt"
+ glib:get-type="cairo_gobject_rectangle_int_get_type">
+ <field name="x" writable="1">
+ <type name="gint" c:type="gint"/>
+ </field>
+ <field name="y" writable="1">
+ <type name="gint" c:type="gint"/>
+ </field>
+ <field name="width" writable="1">
+ <type name="gint" c:type="gint"/>
+ </field>
+ <field name="height" writable="1">
+ <type name="gint" c:type="gint"/>
+ </field>
+ </record>
<function name="image_surface_create" c:identifier="cairo_image_surface_create">
<return-value transfer-ownership="none">
<type name="none" c:type="void"/>