From d33983e34ff46696ca48eafb0c37cb8a3ed03c84 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 27 Oct 2010 13:19:32 -0400 Subject: Rename GnomeCanvasItem.destroy() to dispose(). To clarify the semantics: the method may be called multiple times so pointers should be set to NULL after freeing or unreferencing. --- libgnomecanvas/gnome-canvas.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libgnomecanvas/gnome-canvas.h') diff --git a/libgnomecanvas/gnome-canvas.h b/libgnomecanvas/gnome-canvas.h index 884adbb383..3236e20a5f 100644 --- a/libgnomecanvas/gnome-canvas.h +++ b/libgnomecanvas/gnome-canvas.h @@ -151,8 +151,8 @@ struct _GnomeCanvasItemClass { /* Unmap an item */ void (* unmap) (GnomeCanvasItem *item); - /* Destroy item; called inside GObject's dispose of the base class */ - void (* destroy) (GnomeCanvasItem *item); + /* Dispose item; called inside GObject's dispose of the base class */ + void (* dispose) (GnomeCanvasItem *item); /* Draw an item of this type. (x, y) are the upper-left canvas pixel * coordinates of the drawable, a temporary pixmap, where things get -- cgit v1.2.3