aboutsummaryrefslogtreecommitdiff
path: root/audience~
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-09-15 04:43:47 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-09-15 04:43:47 +0000
commita431a46da7eefba0c9bc45842a4cd63769eab900 (patch)
tree8b36d0399feae832a0a668e17cea93e5bb58d528 /audience~
parenta2b76c71f48393a78f43606f2bbc34727901f2dd (diff)
updated #ifdef code to make savefn and propertiesfn work under 0.37
svn path=/trunk/externals/unauthorized/; revision=965
Diffstat (limited to 'audience~')
-rw-r--r--audience~/audience~.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/audience~/audience~.c b/audience~/audience~.c
index 74b19b7..110dc70 100644
--- a/audience~/audience~.c
+++ b/audience~/audience~.c
@@ -1049,13 +1049,18 @@ void audience_tilde_setup(void)
audience_widgetbehavior.w_deletefn = audience_delete;
audience_widgetbehavior.w_visfn = audience_vis;
audience_widgetbehavior.w_clickfn = audience_click;
- /* As of 0.37, pd does not have these last two elements in */
- /* a t_widgetbehavoir anymore. <hans@eds.org> */
-#if PD_MAJOR_VERSION == 0
+ /*
+ * <hans@eds.org>: As of 0.37, pd does not have these last
+ * two elements in t_widgetbehavoir anymore.
+ * see pd/src/notes.txt:
+ * savefunction and dialog into class structure
+ */
#if PD_MINOR_VERSION < 37 || !defined(PD_MINOR_VERSION)
audience_widgetbehavior.w_propertiesfn = audience_properties;
audience_widgetbehavior.w_savefn = audience_save;
-#endif
+#else
+ class_setsavefn(audience_class_tilde, &audience_save);
+ class_setpropertiesfn(audience_class_tilde, &audience_properties);
#endif
class_setwidget(audience_class_tilde, &audience_widgetbehavior);