Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18091
Modified Files: Tag: impd_0_37 g_dropper.c Log Message: [dropper] bugfix
Index: g_dropper.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/g_dropper.c,v retrieving revision 1.1.2.23 retrieving revision 1.1.2.24 diff -C2 -d -r1.1.2.23 -r1.1.2.24 *** g_dropper.c 14 Aug 2004 03:38:19 -0000 1.1.2.23 --- g_dropper.c 18 Aug 2004 19:08:06 -0000 1.1.2.24 *************** *** 6,17 ****
#include <stdlib.h> - #include <string.h> #include <stdio.h> - #include <ctype.h> #include "m_pd.h" #include "g_canvas.h" #include "t_tk.h" #include "g_all_guis.h" - #include <math.h>
#ifdef MSW --- 6,14 ---- *************** *** 36,39 **** --- 33,46 ---- }
+ static void dropper_save(t_dropper *x, t_binbuf *b) { + t_iemgui *y = (t_iemgui *)x; + if (!b) return; + pd_savehead(b, y, "bng"); + pd_saveargs(b, "iiaaaiiiiccc", + &y->x_w,&y->x_isa,&y->x_snd,&y->x_rcv,&y->x_lab, + &y->x_ldx,&y->x_ldy,&y->x_font_style,&y->x_fontsize, + &y->x_bcol,&y->x_fcol,&y->x_lcol); + } + static void dropper_reload(t_dropper *x, t_symbol *s, int argc, t_atom *argv) { *************** *** 81,84 **** --- 88,92 ---- wb.w_clickfn = 0; class_setwidget(c, &wb); + class_setsavefn(c, dropper_save); class_sethelpsymbol(c, gensym("dropper")); }