Revision: 9957 http://pure-data.svn.sourceforge.net/pure-data/?rev=9957&view=rev Author: eighthave Date: 2008-06-01 02:56:59 -0700 (Sun, 01 Jun 2008)
Log Message: ----------- removed patch #1975056 for displaying full subpatch names since it's not quite ready yet
Modified Paths: -------------- branches/pd-extended/v0-40/pd/src/g_canvas.c
Modified: branches/pd-extended/v0-40/pd/src/g_canvas.c =================================================================== --- branches/pd-extended/v0-40/pd/src/g_canvas.c 2008-05-31 18:17:42 UTC (rev 9956) +++ branches/pd-extended/v0-40/pd/src/g_canvas.c 2008-06-01 09:56:59 UTC (rev 9957) @@ -1133,22 +1133,10 @@
/* -------------------------- subcanvases ---------------------- */
-static void *subcanvas_new(t_symbol *s, int argc, t_atom *argv) +static void *subcanvas_new(t_symbol *s) { t_atom a[6]; t_canvas *x, *z = canvas_getcurrent(); - if (argc) - { - int bufsize; - char *buf; - t_binbuf *bb = binbuf_new(); - binbuf_addv(bb, "s", s); - binbuf_add(bb, argc, argv); - binbuf_gettext(bb, &buf, &bufsize); - buf[bufsize] = '\0'; - binbuf_free(bb); - s = gensym(buf); - } if (!*s->s_name) s = gensym("/SUBPATCH/"); SETFLOAT(a, 0); SETFLOAT(a+1, GLIST_DEFCANVASYLOC); @@ -1762,8 +1750,8 @@ A_NULL);
/* ----- subcanvases, which you get by typing "pd" in a box ---- */ - class_addcreator((t_newmethod)subcanvas_new, gensym("pd"), A_GIMME, 0); - class_addcreator((t_newmethod)subcanvas_new, gensym("page"), A_GIMME, 0); + class_addcreator((t_newmethod)subcanvas_new, gensym("pd"), A_DEFSYMBOL, 0); + class_addcreator((t_newmethod)subcanvas_new, gensym("page"), A_DEFSYMBOL, 0);
class_addmethod(canvas_class, (t_method)canvas_click, gensym("click"), A_FLOAT, A_FLOAT, A_FLOAT, A_FLOAT, A_FLOAT, 0);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.