aboutsummaryrefslogtreecommitdiff
path: root/shared/unstable/forky.c
diff options
context:
space:
mode:
authorN.N. <krzyszcz@users.sourceforge.net>2003-09-16 09:09:20 +0000
committerN.N. <krzyszcz@users.sourceforge.net>2003-09-16 09:09:20 +0000
commit35bd7fea4a08beb15820a07361c089dde0bc8a68 (patch)
tree73064bcb436e7ebbf3b207347003edfb512eae8e /shared/unstable/forky.c
parent49cc44f855c16ae11988e9ff3739fdc01ac8aebe (diff)
*** empty log message ***
svn path=/trunk/externals/miXed/; revision=976
Diffstat (limited to 'shared/unstable/forky.c')
-rw-r--r--shared/unstable/forky.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/shared/unstable/forky.c b/shared/unstable/forky.c
index 1feae26..be4dced 100644
--- a/shared/unstable/forky.c
+++ b/shared/unstable/forky.c
@@ -27,10 +27,22 @@ void forky_setsavefn(t_class *c, t_forkysavefn fn)
post("cloning widgetbehavior...");
#endif
*wb = *c->c_wb;
- wb->w_savefn = fn;
+ wb->w_savefn = sf;
class_setwidget(c, wb);
}
- else c->c_wb->w_savefn = fn;
+ else c->c_wb->w_savefn = sf;
+#endif
+}
+
+void forky_setpropertiesfn(t_class *c, t_forkypropertiesfn fn)
+{
+#if FORKY_VERSION >= 37
+ class_setpropertiesfn(c, fn);
+#else
+ /* assuming wb has already been either cloned (in forky_setsavefn),
+ or defined from scratch -- it is unlikely to ever need props without
+ a specialized save (always be sure to set props after save, though). */
+ c->c_wb->w_propertiesfn = pf;
#endif
}