From 88923be907188c31e4bcab5e2d9fcfa5754a8bfb Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 29 Oct 2007 18:58:45 +0000 Subject: Following this thread: http://lists.puredata.info/pipermail/pd-dev/2007-10/009797.html I have changed the save functions so that they will save the name of the object that it was actually instantiated with. This allows objects with savefns to work properly with namespaces. This is a fix for this bug: http://sourceforge.net/tracker/index.php?&aid=1818219&group_id=55736&atid=478070 svn path=/trunk/externals/unauthorized/; revision=8902 --- sonogram~/sonogram~-joge.c | 3 ++- sonogram~/sonogram~-yves.c | 3 ++- sonogram~/sonogram~.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'sonogram~') diff --git a/sonogram~/sonogram~-joge.c b/sonogram~/sonogram~-joge.c index 62a23c3..b7e93bc 100644 --- a/sonogram~/sonogram~-joge.c +++ b/sonogram~/sonogram~-joge.c @@ -868,7 +868,8 @@ static void sonogram_save(t_gobj *z, t_binbuf *b) binbuf_addv(b, "ssiisiii", gensym("#X"),gensym("obj"), (t_int)x->x_xpos, (t_int)x->x_ypos, - gensym("sonogram~"), x->x_size, x->x_graphic, x->x_phaso ); + atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf)), + x->x_size, x->x_graphic, x->x_phaso ); binbuf_addv(b, ";"); } diff --git a/sonogram~/sonogram~-yves.c b/sonogram~/sonogram~-yves.c index d45bf9e..161ebf2 100644 --- a/sonogram~/sonogram~-yves.c +++ b/sonogram~/sonogram~-yves.c @@ -849,7 +849,8 @@ static void sonogram_save(t_gobj *z, t_binbuf *b) binbuf_addv(b, "ssiisiii", gensym("#X"),gensym("obj"), (t_int)x->x_xpos, (t_int)x->x_ypos, - gensym("sonogram~"), x->x_size, x->x_graphic, x->x_phaso ); + atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf)), + x->x_size, x->x_graphic, x->x_phaso ); binbuf_addv(b, ";"); } diff --git a/sonogram~/sonogram~.c b/sonogram~/sonogram~.c index e6c3887..92850a9 100644 --- a/sonogram~/sonogram~.c +++ b/sonogram~/sonogram~.c @@ -851,7 +851,8 @@ static void sonogram_save(t_gobj *z, t_binbuf *b) binbuf_addv(b, "ssiisiii", gensym("#X"),gensym("obj"), (t_int)x->x_obj.te_xpix, (t_int)x->x_obj.te_ypix, - gensym("sonogram~"), x->x_size, x->x_graphic, x->x_phaso ); + atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf)), + x->x_size, x->x_graphic, x->x_phaso ); binbuf_addv(b, ";"); } -- cgit v1.2.1