From f9eba59332ee7e45ffbfebcd0ce79e8e0cfd9ec4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 19 May 2008 21:36:34 +0000 Subject: More (but not yet completely) type safe value_changed notification. git-svn-id: http://svn.drobilla.net/lad/ingen@1216 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/gui/ControlGroups.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libs/gui/ControlGroups.hpp') diff --git a/src/libs/gui/ControlGroups.hpp b/src/libs/gui/ControlGroups.hpp index 89f26a6b..da604f72 100644 --- a/src/libs/gui/ControlGroups.hpp +++ b/src/libs/gui/ControlGroups.hpp @@ -49,7 +49,7 @@ public: inline const SharedPtr port_model() const { return _port_model; } protected: - virtual void set_value(float value) = 0; + virtual void set_value(const Atom& value) = 0; virtual void set_range(float min, float max) {} ControlPanel* _control_panel; @@ -80,7 +80,7 @@ private: bool clicked(GdkEventButton* ev); - void set_value(float value); + void set_value(const Atom& value); void set_range(float min, float max); void port_variable_change(const string& key, const Raul::Atom& value); -- cgit v1.2.1