aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas O Fredericks <mrtof@users.sourceforge.net>2009-10-21 22:41:38 +0000
committerThomas O Fredericks <mrtof@users.sourceforge.net>2009-10-21 22:41:38 +0000
commit337bc35c130e5490f047ab6f13e91e09a82bffc4 (patch)
treebc6877eefb8f80afc82d638463c49c77df005077 /src
parent99b0b62ca25ec04b1629691a3644fdc513a52924 (diff)
Removed the updateGuis method
svn path=/trunk/externals/tof/; revision=12630
Diffstat (limited to 'src')
-rw-r--r--src/param.c7
-rw-r--r--src/param.h9
-rw-r--r--src/paramCustom.c1
-rw-r--r--src/paramDump.c6
4 files changed, 10 insertions, 13 deletions
diff --git a/src/param.c b/src/param.c
index 5326913..669b6f0 100644
--- a/src/param.c
+++ b/src/param.c
@@ -157,12 +157,12 @@ static void paramClass_GUI(t_paramClass *x, int* ac, t_atom** av, t_symbol** sen
*receive = x->send;
}
-
+/*
// SPECIAL PARAM GUI FUNCTION
static void paramClass_GUIUpdate(t_paramClass *x) {
if(x->selector != &s_bang ) tof_send_anything_prepend(x->send,x->selector,x->ac,x->av,x->set_s );
}
-
+*/
// CONSTRUCTOR
static void* paramClass_new(t_symbol *s, int ac, t_atom *av)
@@ -220,8 +220,7 @@ static void* paramClass_new(t_symbol *s, int ac, t_atom *av)
x->param = param_register(x,root,path, \
(t_paramGetMethod) paramClass_get, \
paramSaveMethod, \
- paramGUIMethod,\
- (t_paramGUIUpdateMethod)paramClass_GUIUpdate);
+ paramGUIMethod);
if (!x->param) return NULL;
diff --git a/src/param.h b/src/param.h
index c4e0ead..0be7f5d 100644
--- a/src/param.h
+++ b/src/param.h
@@ -5,7 +5,7 @@
typedef void (*t_paramGetMethod)(void*,t_symbol**,int*,t_atom**);
typedef void (*t_paramSaveMethod)(void*,t_binbuf*,int);
typedef void (*t_paramGUIMethod)(void*,int*,t_atom**,t_symbol**,t_symbol**);
-typedef void (*t_paramGUIUpdateMethod)(void*);
+//typedef void (*t_paramGUIUpdateMethod)(void*);
char param_buf_temp_a[MAXPDSTRING];
char param_buf_temp_b[MAXPDSTRING];
@@ -24,7 +24,7 @@ typedef struct _param {
t_paramGetMethod get; //Function to get current value
t_paramSaveMethod save; //Function to save
t_paramGUIMethod GUI;
- t_paramGUIUpdateMethod GUIUpdate;
+ // t_paramGUIUpdateMethod GUIUpdate;
//t_symbol* send;
//t_symbol* receive;
} t_param;
@@ -232,8 +232,7 @@ static t_symbol* param_get_path( t_canvas* i_canvas, t_symbol* name) {
//static struct param* register_param( t_canvas* canvas, int o_ac, t_atom* o_av) {
static t_param* param_register(void* x,t_symbol* root, t_symbol* path,\
- t_paramGetMethod get, t_paramSaveMethod save, t_paramGUIMethod GUI, \
- t_paramGUIUpdateMethod GUIUpdate) {
+ t_paramGetMethod get, t_paramSaveMethod save, t_paramGUIMethod GUI) {
//char *separator = "/";
@@ -274,7 +273,7 @@ static t_param* param_register(void* x,t_symbol* root, t_symbol* path,\
p->get = get;
p->save = save;
p->GUI = GUI;
- p->GUIUpdate = GUIUpdate;
+ //p->GUIUpdate = GUIUpdate;
//p->id = id;
//set_param( p, ac, av);
//p->ac_g = ac_g;
diff --git a/src/paramCustom.c b/src/paramCustom.c
index 8be3360..c1cddda 100644
--- a/src/paramCustom.c
+++ b/src/paramCustom.c
@@ -142,7 +142,6 @@ 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,\
NULL);
if (!x->param) return NULL;
diff --git a/src/paramDump.c b/src/paramDump.c
index 91b321e..2d488f8 100644
--- a/src/paramDump.c
+++ b/src/paramDump.c
@@ -36,7 +36,7 @@ typedef struct _paramDump
} t_paramDump;
-
+/*
static void paramDump_updateguis(t_paramDump *x, t_symbol* s) {
t_param* p = get_param_list(x->root);
@@ -62,7 +62,7 @@ static void paramDump_updateguis(t_paramDump *x, t_symbol* s) {
}
}
-
+*/
static void paramDump_guis(t_paramDump *x, t_symbol* s) {
t_param* p = get_param_list(x->root);
@@ -185,7 +185,7 @@ void paramDump_setup(void) {
//class_addmethod(paramDump_class, (t_method) paramDump_values, gensym("values"), A_DEFSYMBOL,0);
class_addmethod(paramDump_class, (t_method) paramDump_guis, gensym("guis"), A_DEFSYMBOL,0);
- class_addmethod(paramDump_class, (t_method) paramDump_updateguis, gensym("updateguis"), A_DEFSYMBOL,0);
+ //class_addmethod(paramDump_class, (t_method) paramDump_updateguis, gensym("updateguis"), A_DEFSYMBOL,0);
//class_addmethod(paramDump_class, (t_method) paramDump_update_guis, gensym("update"), A_DEFSYMBOL,0);