[gtk+/gtk-style-context: 208/251] Add a boxed type for cairo_pattern_t.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 208/251] Add a boxed type for cairo_pattern_t.
- Date: Tue, 12 Oct 2010 02:12:35 +0000 (UTC)
commit 47515dbe10d50aea7b78a8cde9fd06cc1799f4b9
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Sep 2 01:45:17 2010 +0200
Add a boxed type for cairo_pattern_t.
gdk/gdkcairo.c | 1 +
gdk/gdkcairo.h | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c
index 61bfd3c..07951d6 100644
--- a/gdk/gdkcairo.c
+++ b/gdk/gdkcairo.c
@@ -24,6 +24,7 @@
#include "gdkdrawable.h"
#include "gdkinternals.h"
+G_DEFINE_BOXED_TYPE (cairo_pattern_t, gdk_cairo_pattern, cairo_pattern_reference, cairo_pattern_destroy)
/**
* SECTION:cairo_interaction
diff --git a/gdk/gdkcairo.h b/gdk/gdkcairo.h
index 6da2000..c3fc8a8 100644
--- a/gdk/gdkcairo.h
+++ b/gdk/gdkcairo.h
@@ -30,6 +30,10 @@
G_BEGIN_DECLS
+#define GDK_TYPE_CAIRO_PATTERN (gdk_cairo_pattern_get_type ())
+
+GType gdk_cairo_pattern_get_type (void) G_GNUC_CONST;
+
cairo_t *gdk_cairo_create (GdkDrawable *drawable);
void gdk_cairo_reset_clip (cairo_t *cr,
GdkDrawable *drawable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]