Update of /cvsroot/pure-data/externals/ggee/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9726/gui
Modified Files: slider.c sliderh.c Log Message: remove leftover
Index: sliderh.c =================================================================== RCS file: /cvsroot/pure-data/externals/ggee/gui/sliderh.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** sliderh.c 6 Feb 2004 17:03:34 -0000 1.4 --- sliderh.c 24 Feb 2005 14:55:29 -0000 1.5 *************** *** 19,34 **** t_fatom *x = (t_fatom *)z;
! binbuf_addv(b, "ssiisiii", gensym("#X"),gensym("obj"), x->x_obj.te_xpix, x->x_obj.te_ypix , ! gensym("sliderh"),x->x_max,x->x_min,x->x_width); binbuf_addv(b, ";"); }
! static void *sliderh_new(t_floatarg max, t_floatarg min,t_floatarg h) { t_fatom *x = (t_fatom *)pd_new(sliderh_class); x->x_type = gensym("hslider"); ! return fatom_new(x,max,min,h,&s_); }
--- 19,34 ---- t_fatom *x = (t_fatom *)z;
! binbuf_addv(b, "ssiisiiisss", gensym("#X"),gensym("obj"), x->x_obj.te_xpix, x->x_obj.te_ypix , ! gensym("sliderh"),x->x_max,x->x_min,x->x_width,x->x_send,x->x_color,x->x_bgcolor); binbuf_addv(b, ";"); }
! static void *sliderh_new(t_symbol* s, int argc, t_atom* argv) { t_fatom *x = (t_fatom *)pd_new(sliderh_class); x->x_type = gensym("hslider"); ! return fatom_new(x,argc,argv); }
*************** *** 39,43 ****
! void sliderh_setup() { sliderh_class = class_new(gensym("sliderh"), (t_newmethod)sliderh_new, 0, sizeof(t_fatom),0,A_DEFFLOAT,A_DEFFLOAT,A_DEFFLOAT,0); --- 39,43 ----
! void sliderh_setup(void) { sliderh_class = class_new(gensym("sliderh"), (t_newmethod)sliderh_new, 0, sizeof(t_fatom),0,A_DEFFLOAT,A_DEFFLOAT,A_DEFFLOAT,0);
Index: slider.c =================================================================== RCS file: /cvsroot/pure-data/externals/ggee/gui/slider.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** slider.c 25 Jul 2004 13:45:55 -0000 1.10 --- slider.c 24 Feb 2005 14:55:29 -0000 1.11 *************** *** 10,25 **** t_fatom *x = (t_fatom *)z;
! binbuf_addv(b, "ssiisiii", gensym("#X"),gensym("obj"), x->x_obj.te_xpix, x->x_obj.te_ypix , ! gensym("slider"),x->x_max,x->x_min,x->x_width); binbuf_addv(b, ";"); }
! static void *slider_new(t_floatarg max, t_floatarg min, t_floatarg h) { t_fatom *x = (t_fatom *)pd_new(slider_class); x->x_type = gensym("vslider"); ! return fatom_new(x,max,min,h,&s_); }
--- 10,25 ---- t_fatom *x = (t_fatom *)z;
! binbuf_addv(b, "ssiisiiisss", gensym("#X"),gensym("obj"), x->x_obj.te_xpix, x->x_obj.te_ypix , ! gensym("slider"),x->x_max,x->x_min,x->x_width,x->x_send,x->x_color,x->x_bgcolor); binbuf_addv(b, ";"); }
! static void *slider_new(t_symbol* s,t_int argc, t_atom* argv) { t_fatom *x = (t_fatom *)pd_new(slider_class); x->x_type = gensym("vslider"); ! return fatom_new(x,argc,argv); }
*************** *** 28,52 ****
! void slider_setup() { slider_class = class_new(gensym("slider"), (t_newmethod)slider_new, 0, ! sizeof(t_fatom),0,A_DEFFLOAT,A_DEFFLOAT,A_DEFFLOAT,0);
! slider_widgetbehavior.w_getrectfn = fatom_getrect, ! slider_widgetbehavior.w_displacefn = fatom_displace, ! slider_widgetbehavior.w_selectfn = fatom_select, ! slider_widgetbehavior.w_activatefn = fatom_activate, ! slider_widgetbehavior.w_deletefn = fatom_delete, ! slider_widgetbehavior.w_visfn= fatom_vis, ! #if PD_MINOR_VERSION < 37 ! slider_widgetbehavior.w_savefn = slider_save, ! slider_widgetbehavior.w_propertiesfn = NULL, ! #endif ! slider_widgetbehavior.w_clickfn = NULL, ! ! fatom_setup_common(slider_class); class_setwidget(slider_class,&slider_widgetbehavior); ! #if PD_MINOR_VERSION >= 37 class_setsavefn(slider_class,&slider_save); - #endif class_setpropertiesfn(slider_class,&fatom_properties); } --- 28,53 ----
! void slider_setup(void) { slider_class = class_new(gensym("slider"), (t_newmethod)slider_new, 0, ! sizeof(t_fatom),0,A_GIMME,0);
! slider_widgetbehavior.w_getrectfn = fatom_getrect; ! slider_widgetbehavior.w_displacefn = fatom_displace; ! slider_widgetbehavior.w_selectfn = fatom_select; ! slider_widgetbehavior.w_activatefn = fatom_activate; ! slider_widgetbehavior.w_deletefn = fatom_delete; ! slider_widgetbehavior.w_visfn= fatom_vis; ! slider_widgetbehavior.w_clickfn = NULL; ! ! fatom_setup_common(slider_class); class_setwidget(slider_class,&slider_widgetbehavior); ! ! #if PD_MINOR_VERSION < 37 ! slider_widgetbehavior.w_savefn = slider_save; ! slider_widgetbehavior.w_propertiesfn = NULL; ! #else class_setsavefn(slider_class,&slider_save); class_setpropertiesfn(slider_class,&fatom_properties); + #endif + }