From 4bd577d35b15a03da727316b5ffdea43abc7c104 Mon Sep 17 00:00:00 2001 From: Guenter Geiger Date: Mon, 27 Oct 2003 18:23:10 +0000 Subject: setsavefn fixes for 0.37 svn path=/trunk/externals/ggee/; revision=1145 --- gui/fatom.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'gui/fatom.h') diff --git a/gui/fatom.h b/gui/fatom.h index 5900acd..82d804f 100644 --- a/gui/fatom.h +++ b/gui/fatom.h @@ -3,6 +3,8 @@ #define x_val a_pos.a_w.w_float #define DEBUG(x) +#include +#include typedef struct _fatom { @@ -317,9 +319,11 @@ t_widgetbehavior fatom_widgetbehavior = { w_activatefn: fatom_activate, w_deletefn: fatom_delete, w_visfn: fatom_vis, +#if PD_MINOR_VERSION < 37 w_savefn: fatom_save, - w_clickfn: NULL, w_propertiesfn: NULL, +#endif + w_clickfn: NULL, }; @@ -363,6 +367,11 @@ static void fatom_f(t_fatom* x,t_floatarg f) } +static void fatom_properties(t_gobj *z, t_glist *owner) +{ + post("N/I"); +} + static void fatom_save(t_gobj *z, t_binbuf *b) { @@ -428,5 +437,7 @@ void fatom_setup_common(t_class* class) A_SYMBOL, 0); */ class_setwidget(class,&fatom_widgetbehavior); - +#if PD_MINOR_VERSION >= 37 + class_setsavefn(class,&fatom_save); +#endif } -- cgit v1.2.1