diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-10-29 18:58:45 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2007-10-29 18:58:45 +0000 |
commit | e6812c77e47416a3152506865324deafcda64f3a (patch) | |
tree | 1b089bd1131084db6507455ce470c950e64d8b0d /toxy | |
parent | 6c38d4c61b0eb5a539d0c668f524fe1a66643a68 (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/miXed/; revision=8902
Diffstat (limited to 'toxy')
-rw-r--r-- | toxy/widget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toxy/widget.c b/toxy/widget.c index ce6916b..b0ab4de 100644 --- a/toxy/widget.c +++ b/toxy/widget.c @@ -469,7 +469,8 @@ static void widget_save(t_gobj *z, t_binbuf *bb) t_atom *hnd = props_getall(x->x_handlers, &nhnd); t_atom *arg = props_getall(x->x_arguments, &narg); binbuf_addv(bb, "ssiisss", gensym("#X"), gensym("obj"), - (int)t->te_xpix, (int)t->te_ypix, gensym("widget"), + (int)t->te_xpix, (int)t->te_ypix, + atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf)), x->x_type, x->x_name); if (narg) binbuf_add(bb, narg, arg); if (nopt) binbuf_add(bb, nopt, opt); |