From ed932acb5860bf8b9296169676499562a55d139e Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Mon, 6 Sep 2004 20:20:36 +0000 Subject: checking in version 0.38test5. Oops, I realize I forgot some more nice files, will add them and re-commit. svn path=/trunk/; revision=2010 --- pd/src/g_guiconnect.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'pd/src/g_guiconnect.c') diff --git a/pd/src/g_guiconnect.c b/pd/src/g_guiconnect.c index aef8acb6..561ee1a8 100644 --- a/pd/src/g_guiconnect.c +++ b/pd/src/g_guiconnect.c @@ -32,9 +32,9 @@ t_guiconnect *guiconnect_new(t_pd *who, t_symbol *sym) static void guiconnect_free(t_guiconnect *x) { if (x->x_sym) - pd_unbind(&x->x_obj.ob_pd, x->x_sym); + pd_unbind(&x->x_obj.ob_pd, x->x_sym); if (x->x_clock) - clock_free(x->x_clock); + clock_free(x->x_clock); } /* this is called when the clock times out to indicate the GUI should @@ -50,15 +50,15 @@ static void guiconnect_tick(t_guiconnect *x) void guiconnect_notarget(t_guiconnect *x, double timedelay) { if (!x->x_sym) - pd_free(&x->x_obj.ob_pd); + pd_free(&x->x_obj.ob_pd); else { - x->x_who = 0; - if (timedelay > 0) - { - x->x_clock = clock_new(x, (t_method)guiconnect_tick); - clock_delay(x->x_clock, timedelay); - } + x->x_who = 0; + if (timedelay > 0) + { + x->x_clock = clock_new(x, (t_method)guiconnect_tick); + clock_delay(x->x_clock, timedelay); + } } } @@ -67,7 +67,7 @@ static void guiconnect_anything(t_guiconnect *x, t_symbol *s, int ac, t_atom *av) { if (x->x_who) - typedmess(x->x_who, s, ac, av); + typedmess(x->x_who, s, ac, av); } /* the GUI calls this when it disappears. (If there's any chance the @@ -76,19 +76,19 @@ static void guiconnect_anything(t_guiconnect *x, static void guiconnect_signoff(t_guiconnect *x) { if (!x->x_who) - pd_free(&x->x_obj.ob_pd); + pd_free(&x->x_obj.ob_pd); else { - pd_unbind(&x->x_obj.ob_pd, x->x_sym); - x->x_sym = 0; + pd_unbind(&x->x_obj.ob_pd, x->x_sym); + x->x_sym = 0; } } void g_guiconnect_setup(void) { guiconnect_class = class_new(gensym("guiconnect"), 0, - (t_method)guiconnect_free, sizeof(t_guiconnect), CLASS_PD, 0); + (t_method)guiconnect_free, sizeof(t_guiconnect), CLASS_PD, 0); class_addanything(guiconnect_class, guiconnect_anything); class_addmethod(guiconnect_class, (t_method)guiconnect_signoff, - gensym("signoff"), 0); + gensym("signoff"), 0); } -- cgit v1.2.1