[cairo-commit] util/cairo-gobject
Uli Schlachter
psychon at kemper.freedesktop.org
Sat Mar 23 11:49:58 PDT 2013
util/cairo-gobject/cairo-gobject-structs.c | 4 +++-
util/cairo-gobject/cairo-gobject.h | 4 ++++
2 files changed, 7 insertions(+), 1 deletion(-)
New commits:
commit 59ccc3d72e839bd897111322765bb13696a97ef5
Author: Nicola Fontana <ntd at entidi.it>
Date: Fri Mar 1 14:16:45 2013 +0100
gobject: Add wrapper around cairo_matrix_t
Reviewed-By: Benjamin Otte <otte at redhat.com>
Signed-off-by: Uli Schlachter <psychon at znc.in>
diff --git a/util/cairo-gobject/cairo-gobject-structs.c b/util/cairo-gobject/cairo-gobject-structs.c
index 05e3ece..4bbf11b 100644
--- a/util/cairo-gobject/cairo-gobject-structs.c
+++ b/util/cairo-gobject/cairo-gobject-structs.c
@@ -78,10 +78,12 @@ cairo_gobject_cairo_ ## name ## _copy (gpointer src) \
return g_memdup (src, sizeof (cairo_ ## name ## _t)); \
}
+COPY_FUNC (matrix)
+CAIRO_DEFINE_BOXED ("CairoMatrix", cairo_gobject_matrix,
+ cairo_gobject_cairo_matrix_copy, g_free);
COPY_FUNC (rectangle)
CAIRO_DEFINE_BOXED ("CairoRectangle", cairo_gobject_rectangle,
cairo_gobject_cairo_rectangle_copy, g_free);
COPY_FUNC (rectangle_int)
CAIRO_DEFINE_BOXED ("CairoRectangleInt", cairo_gobject_rectangle_int,
cairo_gobject_cairo_rectangle_int_copy, g_free);
-
diff --git a/util/cairo-gobject/cairo-gobject.h b/util/cairo-gobject/cairo-gobject.h
index e82cbc0..459074e 100644
--- a/util/cairo-gobject/cairo-gobject.h
+++ b/util/cairo-gobject/cairo-gobject.h
@@ -55,6 +55,10 @@ cairo_gobject_context_get_type (void);
cairo_public GType
cairo_gobject_device_get_type (void);
+#define CAIRO_GOBJECT_TYPE_MATRIX cairo_gobject_matrix_get_type ()
+cairo_public GType
+cairo_gobject_matrix_get_type (void);
+
#define CAIRO_GOBJECT_TYPE_PATTERN cairo_gobject_pattern_get_type ()
cairo_public GType
cairo_gobject_pattern_get_type (void);
More information about the cairo-commit
mailing list