diff options
author | N.N. <krzyszcz@users.sourceforge.net> | 2003-09-05 10:03:46 +0000 |
---|---|---|
committer | N.N. <krzyszcz@users.sourceforge.net> | 2003-09-05 10:03:46 +0000 |
commit | 53f05d96ff8e49c87977fa91a06ebade8893606e (patch) | |
tree | 51bd07eb57c532e61515fb85a0fcd83698054854 /shared/hammer | |
parent | 672477f94d2d0701f75f2546ad79980dc9ac8543 (diff) |
*** empty log message ***
svn path=/trunk/externals/miXed/; revision=931
Diffstat (limited to 'shared/hammer')
-rw-r--r-- | shared/hammer/file.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/shared/hammer/file.c b/shared/hammer/file.c index 6a94c92..635c9bc 100644 --- a/shared/hammer/file.c +++ b/shared/hammer/file.c @@ -20,8 +20,7 @@ #include <string.h> #include "m_pd.h" #include "g_canvas.h" -/* need this for t_class::c_wb field access, LATER find a better way... */ -#include "unstable/pd_imp.h" +#include "unstable/forky.h" #include "hammer/file.h" static t_class *hammerfile_class = 0; @@ -375,10 +374,7 @@ void hammerfile_setup(t_class *c, int embeddable) { if (embeddable) { - t_widgetbehavior *newwb = getbytes(sizeof(*newwb)); /* never freed */ - *newwb = *c->c_wb; - newwb->w_savefn = hammerembed_save; - class_setwidget(c, newwb); + forky_setsavefn(c, hammerembed_save); class_addmethod(c, (t_method)hammerembed_restore, gensym("restore"), 0); } |