aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-07-18 20:06:09 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-18 20:07:28 +0800
commitbf9061359879a6237f1c2488b983cdae14929bb2 (patch)
tree553e841069445fef235ee85a35e3d8eeb2ae2f67
parent1b4f221a90ad64eed5282678f99fc44154474773 (diff)
downloadgsoc2013-evolution-bf9061359879a6237f1c2488b983cdae14929bb2.tar
gsoc2013-evolution-bf9061359879a6237f1c2488b983cdae14929bb2.tar.gz
gsoc2013-evolution-bf9061359879a6237f1c2488b983cdae14929bb2.tar.bz2
gsoc2013-evolution-bf9061359879a6237f1c2488b983cdae14929bb2.tar.lz
gsoc2013-evolution-bf9061359879a6237f1c2488b983cdae14929bb2.tar.xz
gsoc2013-evolution-bf9061359879a6237f1c2488b983cdae14929bb2.tar.zst
gsoc2013-evolution-bf9061359879a6237f1c2488b983cdae14929bb2.zip
Bug 704459: GnomeCanvasItem: Implement all methods
So subclasses can safely chain up without checking for NULL.
-rw-r--r--libgnomecanvas/gnome-canvas.c46
1 files changed, 46 insertions, 0 deletions
diff --git a/libgnomecanvas/gnome-canvas.c b/libgnomecanvas/gnome-canvas.c
index 99aa679f3c..04facd28e8 100644
--- a/libgnomecanvas/gnome-canvas.c
+++ b/libgnomecanvas/gnome-canvas.c
@@ -391,6 +391,48 @@ gnome_canvas_item_dispose_item (GnomeCanvasItem *item)
/* Placeholder so subclasses can safely chain up. */
}
+static void
+gnome_canvas_item_draw (GnomeCanvasItem *item,
+ cairo_t *cr,
+ gint x,
+ gint y,
+ gint width,
+ gint height)
+{
+ /* Placeholder so subclasses can safely chain up. */
+}
+
+static GnomeCanvasItem *
+gnome_canvas_item_point (GnomeCanvasItem *item,
+ gdouble x,
+ gdouble y,
+ gint cx,
+ gint cy)
+{
+ /* Placeholder so subclasses can safely chain up. */
+
+ return NULL;
+}
+
+static void
+gnome_canvas_item_bounds (GnomeCanvasItem *item,
+ gdouble *x1,
+ gdouble *y1,
+ gdouble *x2,
+ gdouble *y2)
+{
+ /* Placeholder so subclasses can safely chain up. */
+}
+
+static gboolean
+gnome_canvas_item_event (GnomeCanvasItem *item,
+ GdkEvent *event)
+{
+ /* Placeholder so subclasses can safely chain up. */
+
+ return FALSE; /* event was not handled */
+}
+
/*
* This routine invokes the update method of the item
* Please notice, that we take parent to canvas pixel matrix as argument
@@ -3370,4 +3412,8 @@ gnome_canvas_item_class_init (GnomeCanvasItemClass *class)
class->map = gnome_canvas_item_map;
class->unmap = gnome_canvas_item_unmap;
class->dispose = gnome_canvas_item_dispose_item;
+ class->draw = gnome_canvas_item_draw;
+ class->point = gnome_canvas_item_point;
+ class->bounds = gnome_canvas_item_bounds;
+ class->event = gnome_canvas_item_event;
}