Index: src/rbgnome-canvas-path-def.c =================================================================== RCS file: /cvsroot/ruby-gnome2/ruby-gnome2/gnomecanvas/src/rbgnome-canvas-path-def.c,v retrieving revision 1.8 diff -u -p -r1.8 rbgnome-canvas-path-def.c --- src/rbgnome-canvas-path-def.c 15 Feb 2005 06:12:56 -0000 1.8 +++ src/rbgnome-canvas-path-def.c 29 Jul 2005 07:11:43 -0000 @@ -28,13 +28,22 @@ static VALUE gnoCanvasPathDef; #define _SELF(self) (GnomeCanvasPathDef *)RVAL2BOXED(self, rbgno_canvas_path_def_get_type()) #define _WRAP(self) BOXED2RVAL(self, rbgno_canvas_path_def_get_type()) +static GnomeCanvasPathDef * +rbgno_canvas_path_def_copy(path_def) + GnomeCanvasPathDef *path_def; +{ + if (path_def) + gnome_canvas_path_def_ref(path_def); + return path_def; +} + GType rbgno_canvas_path_def_get_type() { static GType our_type = 0; if (our_type == 0) our_type = g_boxed_type_register_static ("GnomeCanvasPathDef", - (GBoxedCopyFunc)gnome_canvas_path_def_ref, + (GBoxedCopyFunc)rbgno_canvas_path_def_copy, (GBoxedFreeFunc)gnome_canvas_path_def_unref); return our_type; }