aboutsummaryrefslogtreecommitdiff
path: root/gui/ticker.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/ticker.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/ticker.c')
-rwxr-xr-xgui/ticker.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gui/ticker.c b/gui/ticker.c
index 6af0ee1..45a80d9 100755
--- a/gui/ticker.c
+++ b/gui/ticker.c
@@ -18,9 +18,10 @@ static void ticker_save(t_gobj *z, t_binbuf *b)
t_fatom *x = (t_fatom *)z;
- binbuf_addv(b, "ssiiss", gensym("#X"),gensym("obj"),
- x->x_obj.te_xpix, x->x_obj.te_ypix ,
- gensym("ticker"),x->x_text,x->x_max,x->x_width);
+ 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,x->x_max,x->x_width);
binbuf_addv(b, ";");
}