summaryrefslogtreecommitdiff
path: root/gdk/gdkpixmap.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-02-03 23:29:02 +0000
committerOwen Taylor <otaylor@src.gnome.org>2005-02-03 23:29:02 +0000
commit93344f6dfee0d21e5e9aa750b5a91ed10980cd24 (patch)
tree71978aa4f489edd13c2d71b55344921f0fdaab5b /gdk/gdkpixmap.c
parent8a5d05e253490a5851b7e142f4090971153c1178 (diff)
downloadgtk+-93344f6dfee0d21e5e9aa750b5a91ed10980cd24.tar.gz
Add gdk_drawable_set_cairo_target().
2005-02-03 Owen Taylor <otaylor@redhat.com> * gdk/gdkdrawable.[ch] gdkpixmap.c gdkwindow.c: Add gdk_drawable_set_cairo_target(). * tests/testtreeflow.c (enum): Use grand not rand as a variable name because one of the cairo headers is pulling in stdlib.h. * tests/testcairo.c tests/Makefile.am: Add a simple cairo based example. * configure.in: Bump release to 2.7.0, gtk_binary_version to 2.7.0. * Require libpangocairo for all backends.
Diffstat (limited to 'gdk/gdkpixmap.c')
-rw-r--r--gdk/gdkpixmap.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdk/gdkpixmap.c b/gdk/gdkpixmap.c
index 978712a9e0..d3012eb64e 100644
--- a/gdk/gdkpixmap.c
+++ b/gdk/gdkpixmap.c
@@ -144,6 +144,9 @@ static GdkImage* gdk_pixmap_copy_to_image (GdkDrawable *drawable,
gint width,
gint height);
+static void gdk_pixmap_set_cairo_target (GdkDrawable *drawable,
+ cairo_t *cr);
+
static GdkVisual* gdk_pixmap_real_get_visual (GdkDrawable *drawable);
static gint gdk_pixmap_real_get_depth (GdkDrawable *drawable);
static void gdk_pixmap_real_set_colormap (GdkDrawable *drawable,
@@ -224,6 +227,7 @@ gdk_pixmap_class_init (GdkPixmapObjectClass *klass)
drawable_class->get_colormap = gdk_pixmap_real_get_colormap;
drawable_class->get_visual = gdk_pixmap_real_get_visual;
drawable_class->_copy_to_image = gdk_pixmap_copy_to_image;
+ drawable_class->set_cairo_target = gdk_pixmap_set_cairo_target;
}
static void
@@ -517,6 +521,14 @@ gdk_pixmap_copy_to_image (GdkDrawable *drawable,
width, height);
}
+static void
+gdk_pixmap_set_cairo_target (GdkDrawable *drawable,
+ cairo_t *cr)
+{
+ gdk_drawable_set_cairo_target (((GdkPixmapObject*)drawable)->impl,
+ cr);
+}
+
static GdkBitmap *
make_solid_mask (GdkScreen *screen, gint width, gint height)
{