From a186c7faeac2f46ba9e24cce3bc2296ee5f7c942 Mon Sep 17 00:00:00 2001 From: Thomas O Fredericks Date: Thu, 22 Oct 2009 01:26:47 +0000 Subject: Made paramGui only re-build the gui when requested svn path=/trunk/externals/tof/; revision=12632 --- src/paramCustom.c | 6 ++---- src/tof.h | 12 +++++++----- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/paramCustom.c b/src/paramCustom.c index c1cddda..4f6c9c2 100644 --- a/src/paramCustom.c +++ b/src/paramCustom.c @@ -139,10 +139,8 @@ static void* paramCustom_new(t_symbol *s, int ac, t_atom *av) - x->param = param_register(x,root,path,\ - NULL,\ - (t_paramSaveMethod) paramCustom_save,\ - NULL); + x->param = param_register(x,root,path, NULL,\ + (t_paramSaveMethod) paramCustom_save,NULL); if (!x->param) return NULL; diff --git a/src/tof.h b/src/tof.h index 3c3b1f9..9681d7e 100644 --- a/src/tof.h +++ b/src/tof.h @@ -38,16 +38,17 @@ static t_symbol* tof_get_dollarzero(t_canvas* canvas) { return canvas_realizedollar(canvas, gensym("$0")); } - +//canvas_isabstraction(t_canvas *x) static int tof_canvas_is_not_subpatch(t_canvas* canvas) { - return canvas_isabstraction(canvas); + return (canvas->gl_env != 0); } static t_canvas* tof_get_canvas(void) { - return glist_getcanvas((t_glist *)canvas_getcurrent()); + return canvas_getcurrent(); + //return glist_getcanvas((t_glist *)canvas_getcurrent()); } @@ -137,9 +138,10 @@ static t_canvas* tof_get_root_canvas(t_canvas* canvas) } static void tof_get_canvas_arguments(t_canvas *canvas, int *ac_p, t_atom **av_p) { - canvas_setcurrent(canvas); + pd_pushsym(&canvas->gl_pd); //canvas_setcurrent(canvas); canvas_getargs(ac_p , av_p); - canvas_unsetcurrent(canvas); + pd_popsym(&canvas->gl_pd); //canvas_unsetcurrent(canvas); + } -- cgit v1.2.1