From 7678586aa3cef8591249fe4369f942ecb342300d 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/ggee/; revision=8902 --- gui/button.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gui/button.c') diff --git a/gui/button.c b/gui/button.c index 7eaa7b9..9dad3a2 100644 --- a/gui/button.c +++ b/gui/button.c @@ -294,9 +294,10 @@ static void button_save(t_gobj *z, t_binbuf *b) t_button *x = (t_button *)z; - binbuf_addv(b, "ssiiss", gensym("#X"),gensym("obj"), - x->x_obj.te_xpix, x->x_obj.te_ypix , - gensym("button"),x->x_text); + binbuf_addv(b, "ssiiss", gensym("#X"), gensym("obj"), + x->x_obj.te_xpix, x->x_obj.te_ypix , + atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf)), + x->x_text); binbuf_addv(b, ";"); } -- cgit v1.2.1