aboutsummaryrefslogtreecommitdiff
path: root/gui/fatom.h
diff options
context:
space:
mode:
authorGuenter Geiger <ggeiger@users.sourceforge.net>2003-06-12 12:33:50 +0000
committerGuenter Geiger <ggeiger@users.sourceforge.net>2003-06-12 12:33:50 +0000
commitddbaa86f0063473a995caa2435e0cae955385f61 (patch)
treef53279e1936e62487ce9e25cfa929b9d513096c3 /gui/fatom.h
parent2f385d0e87ef427782fa82f240821dc30ece57da (diff)
slider: added bang message, button width ajustment (still wrong)
svn path=/trunk/externals/ggee/; revision=697
Diffstat (limited to 'gui/fatom.h')
-rw-r--r--gui/fatom.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/fatom.h b/gui/fatom.h
index 6cba41c..8c0854e 100644
--- a/gui/fatom.h
+++ b/gui/fatom.h
@@ -334,6 +334,11 @@ static void fatom_float(t_fatom* x,t_floatarg f)
outlet_float(x->x_obj.ob_outlet,f);
}
+static void fatom_bang(t_fatom* x,t_floatarg f)
+{
+ outlet_float(x->x_obj.ob_outlet,x->x_val);
+}
+
static void fatom_f(t_fatom* x,t_floatarg f)
{
x->x_val = f;
@@ -396,6 +401,7 @@ void fatom_setup_common(t_class* class)
{
class_addfloat(class, (t_method)fatom_float);
+ class_addbang(class, (t_method)fatom_bang);
class_addmethod(class, (t_method)fatom_f, gensym("f"),
A_FLOAT, 0);