summaryrefslogtreecommitdiffstats
path: root/src/gui/Port.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/Port.cpp')
-rw-r--r--src/gui/Port.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp
index d1c0eda3..0ab079c5 100644
--- a/src/gui/Port.cpp
+++ b/src/gui/Port.cpp
@@ -152,14 +152,9 @@ Port::moved()
}
void
-Port::on_value_changed(GVariant* value)
+Port::on_value_changed(double value)
{
- if (!g_variant_is_of_type(value, G_VARIANT_TYPE_DOUBLE)) {
- _app.log().warn("TODO: Non-float port value changed\n");
- return;
- }
-
- const Raul::Atom atom = _app.forge().make(float(g_variant_get_double(value)));
+ const Raul::Atom atom = _app.forge().make(float(value));
if (atom != model()->value()) {
Ingen::World* const world = _app.world();
_app.interface()->set_property(model()->uri(),