aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas O Fredericks <mrtof@users.sourceforge.net>2009-10-22 01:26:47 +0000
committerThomas O Fredericks <mrtof@users.sourceforge.net>2009-10-22 01:26:47 +0000
commita186c7faeac2f46ba9e24cce3bc2296ee5f7c942 (patch)
treeb49d471f53a0585a98dbe8a4d9740fe0046e3c12 /src
parent20c8f604bb7ea3a2b7b06d836fb231ef6de7ece1 (diff)
Made paramGui only re-build the gui when requested
svn path=/trunk/externals/tof/; revision=12632
Diffstat (limited to 'src')
-rw-r--r--src/paramCustom.c6
-rw-r--r--src/tof.h12
2 files changed, 9 insertions, 9 deletions
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);
+
}