Update of /cvsroot/pure-data/externals/bbogart/popup In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1599/bbogart/popup
Modified Files: popup.c Log Message:
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...
Index: popup.c =================================================================== RCS file: /cvsroot/pure-data/externals/bbogart/popup/popup.c,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** popup.c 7 Jun 2005 18:09:55 -0000 1.17 --- popup.c 29 Oct 2007 18:58:42 -0000 1.18 *************** *** 377,383 **** t_popup *x = (t_popup *)z;
! binbuf_addv(b, "ssiisiiss", gensym("#X"),gensym("obj"), ! x->x_obj.te_xpix, x->x_obj.te_ypix , ! gensym("popup"), x->x_width, x->x_height, x->x_colour, x->x_name); /* Loop for menu items */ for(i=0 ; i<x->x_num_options ; i++) --- 377,384 ---- t_popup *x = (t_popup *)z;
! binbuf_addv(b, "ssiisiiss", 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_width, x->x_height, x->x_colour, x->x_name); /* Loop for menu items */ for(i=0 ; i<x->x_num_options ; i++)