aboutsummaryrefslogtreecommitdiffstats
path: root/libgnomecanvas/gnome-canvas.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-11-09 21:41:52 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-01-26 21:49:11 +0800
commit691008dd139a2c675dd9ccefdbf1bcf183da80a2 (patch)
tree9dd5650cd13a523024c09fb59875fbb47ce79777 /libgnomecanvas/gnome-canvas.h
parent72341218cf303a7bb1151804d26e56d6b7f1e403 (diff)
downloadgsoc2013-evolution-691008dd139a2c675dd9ccefdbf1bcf183da80a2.tar
gsoc2013-evolution-691008dd139a2c675dd9ccefdbf1bcf183da80a2.tar.gz
gsoc2013-evolution-691008dd139a2c675dd9ccefdbf1bcf183da80a2.tar.bz2
gsoc2013-evolution-691008dd139a2c675dd9ccefdbf1bcf183da80a2.tar.lz
gsoc2013-evolution-691008dd139a2c675dd9ccefdbf1bcf183da80a2.tar.xz
gsoc2013-evolution-691008dd139a2c675dd9ccefdbf1bcf183da80a2.tar.zst
gsoc2013-evolution-691008dd139a2c675dd9ccefdbf1bcf183da80a2.zip
Adapt GnomeCanvas to latest gtk+-3.0 API.
Diffstat (limited to 'libgnomecanvas/gnome-canvas.h')
-rw-r--r--libgnomecanvas/gnome-canvas.h21
1 files changed, 7 insertions, 14 deletions
diff --git a/libgnomecanvas/gnome-canvas.h b/libgnomecanvas/gnome-canvas.h
index 5c46464f85..603ebfebc3 100644
--- a/libgnomecanvas/gnome-canvas.h
+++ b/libgnomecanvas/gnome-canvas.h
@@ -84,12 +84,11 @@ typedef struct _GnomeCanvasGroupClass GnomeCanvasGroupClass;
typedef enum {
GNOME_CANVAS_ITEM_REALIZED = 1 << 0,
GNOME_CANVAS_ITEM_MAPPED = 1 << 1,
- GNOME_CANVAS_ITEM_ALWAYS_REDRAW = 1 << 2,
- GNOME_CANVAS_ITEM_VISIBLE = 1 << 3,
- GNOME_CANVAS_ITEM_NEED_UPDATE = 1 << 4,
- GNOME_CANVAS_ITEM_NEED_AFFINE = 1 << 5,
- GNOME_CANVAS_ITEM_NEED_CLIP = 1 << 6,
- GNOME_CANVAS_ITEM_NEED_VIS = 1 << 7
+ GNOME_CANVAS_ITEM_VISIBLE = 1 << 2,
+ GNOME_CANVAS_ITEM_NEED_UPDATE = 1 << 3,
+ GNOME_CANVAS_ITEM_NEED_AFFINE = 1 << 4,
+ GNOME_CANVAS_ITEM_NEED_CLIP = 1 << 5,
+ GNOME_CANVAS_ITEM_NEED_VIS = 1 << 6
} GnomeCanvasItemFlags;
/* Update flags for items */
@@ -158,7 +157,7 @@ struct _GnomeCanvasItemClass {
* coordinates of the drawable, a temporary pixmap, where things get
* drawn. (width, height) are the dimensions of the drawable.
*/
- void (* draw) (GnomeCanvasItem *item, GdkDrawable *drawable,
+ void (* draw) (GnomeCanvasItem *item, cairo_t *cr,
gint x, gint y, gint width, gint height);
/* Returns the canvas item which is at the given location. This is the
@@ -376,12 +375,6 @@ struct _GnomeCanvas {
/* Idle handler ID */
guint idle_id;
- /* Area that is being redrawn. Contains (x1, y1) but not (x2, y2).
- * Specified in canvas pixel coordinates.
- */
- gint redraw_x1, redraw_y1;
- gint redraw_x2, redraw_y2;
-
/* Offsets of the temprary drawing pixmap */
gint draw_xofs, draw_yofs;
@@ -413,7 +406,7 @@ struct _GnomeCanvasClass {
/* Draw the background for the area given. This method is only used
* for non-antialiased canvases.
*/
- void (* draw_background) (GnomeCanvas *canvas, GdkDrawable *drawable,
+ void (* draw_background) (GnomeCanvas *canvas, cairo_t *cr,
gint x, gint y, gint width, gint height);
/* Private Virtual methods for groping the canvas inside bonobo */