diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2003-09-15 04:43:47 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2003-09-15 04:43:47 +0000 |
commit | a431a46da7eefba0c9bc45842a4cd63769eab900 (patch) | |
tree | 8b36d0399feae832a0a668e17cea93e5bb58d528 /scratcher~ | |
parent | a2b76c71f48393a78f43606f2bbc34727901f2dd (diff) |
updated #ifdef code to make savefn and propertiesfn work under 0.37
svn path=/trunk/externals/unauthorized/; revision=965
Diffstat (limited to 'scratcher~')
-rw-r--r-- | scratcher~/scratcher~.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/scratcher~/scratcher~.c b/scratcher~/scratcher~.c index 63ceb1b..0110776 100644 --- a/scratcher~/scratcher~.c +++ b/scratcher~/scratcher~.c @@ -778,13 +778,18 @@ void scratcher_tilde_setup(void) scratcher_widgetbehavior.w_deletefn = scratcher_delete; scratcher_widgetbehavior.w_visfn = scratcher_vis; scratcher_widgetbehavior.w_clickfn = scratcher_click; - /* As of 0.37, the last two elements of t_widgetbehavoir */ - /* have been removed. <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) scratcher_widgetbehavior.w_propertiesfn = scratcher_properties; scratcher_widgetbehavior.w_savefn = scratcher_save; -#endif +#else + class_setpropertiesfn(scratcher_class, &scratcher_properties); + class_setsavefn(scratcher_class, &scratcher_save); #endif CLASS_MAINSIGNALIN( scratcher_class, t_scratcher, x_f ); |