[gobject-introspection] cairo-1.0.gir: Un-foreign RectangleInt
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] cairo-1.0.gir: Un-foreign RectangleInt
- Date: Fri, 10 Dec 2010 16:00:16 +0000 (UTC)
commit e455454a2a843bcc2af621829ca4d129dfa13b18
Author: Colin Walters <walters verbum org>
Date: Mon Dec 6 10:26:02 2010 -0500
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
gir/cairo-1.0.gir | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/gir/cairo-1.0.gir b/gir/cairo-1.0.gir
index dbec19d..8473c34 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"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]