Update of /cvsroot/pure-data/externals/footils/knob In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7756
Modified Files: knob.c Log Message:
Checked in Chris' fixes for pd_0.37. Please test!
Index: knob.c =================================================================== RCS file: /cvsroot/pure-data/externals/footils/knob/knob.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** knob.c 16 Jan 2004 10:47:22 -0000 1.4 --- knob.c 6 Jun 2004 14:16:53 -0000 1.5 *************** *** 1,802 **** ! /* Copyright (c) 1997-1999 Miller Puckette. ! * For information on usage and redistribution, and for a DISCLAIMER OF ALL ! * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ ! ! /* g_7_guis.c written by Thomas Musil (c) IEM KUG Graz Austria 2000-2001 */ ! /* thanks to Miller Puckette, Guenther Geiger and Krzystof Czaja */ ! ! /* 'knob' gui object by Frank Barknecht, 'externalised' by Olaf Matthes */ ! ! /* I had to out-comment the loadbang stuff because I couldn't find the code [...1556 lines suppressed...] ! class_addmethod(knob_class, (t_method)knob_steady, gensym("steady"), A_FLOAT, 0); ! if(!iemgui_key_sym) ! iemgui_key_sym = gensym("#keyname"); ! knob_widgetbehavior.w_getrectfn = knob_getrect; ! knob_widgetbehavior.w_displacefn = iemgui_displace; ! knob_widgetbehavior.w_selectfn = iemgui_select; ! knob_widgetbehavior.w_activatefn = NULL; ! knob_widgetbehavior.w_deletefn = iemgui_delete; ! knob_widgetbehavior.w_visfn = iemgui_vis; ! knob_widgetbehavior.w_clickfn = knob_newclick; ! #if PD_MINOR_VERSION < 37 /* TODO: remove old behaviour in exactly 2 months from now */ ! knob_widgetbehavior.w_propertiesfn = knob_properties;; ! knob_widgetbehavior.w_savefn = knob_save; ! #else ! class_setpropertiesfn(knob_class, &knob_properties); ! class_setsavefn(knob_class, &knob_save); ! #endif ! class_setwidget(knob_class, &knob_widgetbehavior); ! class_sethelpsymbol(knob_class, gensym("knob")); ! }