[evolution] Bug 704459: GnomeCanvasItem: Implement all methods
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 704459: GnomeCanvasItem: Implement all methods
- Date: Thu, 18 Jul 2013 12:08:45 +0000 (UTC)
commit bf9061359879a6237f1c2488b983cdae14929bb2
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Jul 18 08:06:09 2013 -0400
Bug 704459: GnomeCanvasItem: Implement all methods
So subclasses can safely chain up without checking for NULL.
libgnomecanvas/gnome-canvas.c | 46 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 46 insertions(+), 0 deletions(-)
---
diff --git a/libgnomecanvas/gnome-canvas.c b/libgnomecanvas/gnome-canvas.c
index 99aa679..04facd2 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]