summaryrefslogtreecommitdiff
path: root/eel/eel-canvas.h
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-11-07 19:19:10 +0200
committerJasmine Hassan <[email protected]>2012-11-16 09:45:52 +0200
commitaebf60348dd7675678c28a5c850d1900b7b95e8c (patch)
tree237b2ef6302bfc2039369b32765c27a1b093f464 /eel/eel-canvas.h
parent8af0b94b1f4df47364abc9f7f02cc467ecd1cdee (diff)
downloadcaja-aebf60348dd7675678c28a5c850d1900b7b95e8c.tar.bz2
caja-aebf60348dd7675678c28a5c850d1900b7b95e8c.tar.xz
[eel-canvas] Port the eel canvas to rendering-cleanup-next
http://git.gnome.org/browse/nautilus/commit/?id=58832e54b6a4e596693527d577e4f8fa2f3e4ccf
Diffstat (limited to 'eel/eel-canvas.h')
-rw-r--r--eel/eel-canvas.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/eel/eel-canvas.h b/eel/eel-canvas.h
index b288dedf..8f49141a 100644
--- a/eel/eel-canvas.h
+++ b/eel/eel-canvas.h
@@ -159,7 +159,11 @@ extern "C" {
* coordinates of the drawable, a temporary pixmap, where things get
* drawn. (width, height) are the dimensions of the drawable.
*/
+#if GTK_CHECK_VERSION(3,0,0)
+ void (* draw) (EelCanvasItem *item, cairo_t *cr, cairo_region_t *region);
+#else
void (* draw) (EelCanvasItem *item, GdkDrawable *drawable, GdkEventExpose *expose);
+#endif
/* Calculate the distance from an item to the specified point. It also
* returns a canvas item which is the item itself in the case of the
@@ -434,7 +438,11 @@ extern "C" {
/* Draw the background for the area given.
*/
void (* draw_background) (EelCanvas *canvas,
+#if GTK_CHECK_VERSION(3,0,0)
+ cairo_t *cr);
+#else
int x, int y, int width, int height);
+#endif
/* Private Virtual methods for groping the canvas inside matecomponent */
void (* request_update) (EelCanvas *canvas);