aboutsummaryrefslogtreecommitdiff
path: root/gui/toddle.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-10-29 18:58:45 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2007-10-29 18:58:45 +0000
commit7678586aa3cef8591249fe4369f942ecb342300d (patch)
tree0fce3c2789633d7cac994b3d1df88a2efa13ecbd /gui/toddle.c
parente53a682a142125977f923e7d5dba28226bb2a5e8 (diff)
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
Diffstat (limited to 'gui/toddle.c')
-rwxr-xr-xgui/toddle.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gui/toddle.c b/gui/toddle.c
index 684283f..9abf281 100755
--- a/gui/toddle.c
+++ b/gui/toddle.c
@@ -237,9 +237,10 @@ static void toddle_vis(t_gobj *z, t_glist *glist, int vis)
static void toddle_save(t_gobj *z, t_binbuf *b)
{
t_toddle *x = (t_toddle *)z;
- binbuf_addv(b, "ssiissii", gensym("#X"),gensym("obj"),
- (t_int)x->x_obj.te_xpos, (t_int)x->x_obj.te_ypos,
- gensym("toddle"),x->x_color,x->x_width,x->x_height);
+ binbuf_addv(b, "ssiissii", gensym("#X"), gensym("obj"),
+ (t_int)x->x_obj.te_xpos, (t_int)x->x_obj.te_ypos,
+ atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf)),
+ x->x_color,x->x_width,x->x_height);
binbuf_addv(b, ";");
}