Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29440
Modified Files: Tag: devel_0_39 desire.c Log Message: attempts in making g_wire_setup,
Index: desire.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v retrieving revision 1.1.2.56 retrieving revision 1.1.2.57 diff -C2 -d -r1.1.2.56 -r1.1.2.57 *** desire.c 23 Nov 2005 08:59:15 -0000 1.1.2.56 --- desire.c 24 Nov 2005 11:41:01 -0000 1.1.2.57 *************** *** 828,832 **** x->gl_havewindow = 1; canvas_updatewindowlist(); ! post("subscribe %lx",(long)x); gobj_subscribe((t_gobj *)x,(t_gobj *)manager); gobj_changed(x,""); --- 828,832 ---- x->gl_havewindow = 1; canvas_updatewindowlist(); ! post("******subscribe %lx",(long)x); gobj_subscribe((t_gobj *)x,(t_gobj *)manager); gobj_changed(x,""); *************** *** 12757,12760 **** --- 12757,12794 ---- }
+ //---------- + // wire + /* + void wire_notice(t_gobj *x, struct _gobj *origin, int argc, t_atom *argv) { + t_canvas *self = (t_canvas *)x; + post("canvas_notice(%p,%p,%d,...): havewindow=%d mapped=%d",x,origin,argc,self->gl_havewindow,self->gl_mapped); + gobj_changed3(self,origin,argc,argv); + } + */ + static t_class *wire_class; + void wire_free(t_canvas *x) + { + t_gobj *y; + + if (x->gl_env) + { + freebytes(x->gl_env->ce_argv, x->gl_env->ce_argc * sizeof(t_atom)); + freebytes(x->gl_env, sizeof(*x->gl_env)); + } + + } + + static void g_wire_setup(void) + { + t_class *c = wire_class = class_new(gensym("wire"), 0, + (t_method)wire_free, sizeof(t_object), CLASS_NOINLET, 0); + iemgui_subclass(c); + //class_setnotice(c, wire_notice); + } + + static void canvas_wire (void) { + + post ("boohoo"); + }
//----------- *************** *** 12797,12800 **** --- 12831,12835 ---- class_addmethod3(c,canvas_mycnv,"mycnv","*"); class_addmethod3(c,canvas_numbox,"numbox","*"); + //class_addmethod3(c,canvas_wire,"wire","*");
class_addmethod3(c,canvas_pop,"pop","F"); *************** *** 12864,12867 **** --- 12899,12904 ---- }
+ + void desire_setup(void) { manager_class = class_new(gensym("__manager"), (t_newmethod)manager_new,