aboutsummaryrefslogtreecommitdiff
path: root/toxy/widget.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxy/widget.c')
-rw-r--r--toxy/widget.c3
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);