summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-02-03 06:08:08 +0000
committerDavid Robillard <d@drobilla.net>2010-02-03 06:08:08 +0000
commit44859a84f0bad75cb358dc1d91e5cfcdeda10ba7 (patch)
treebf16298b7448f7b696bbe0649940838e7504861b /src/gui
parent87597f85c5a69a9accd3ce2ed88f2a006173e885 (diff)
downloadingen-44859a84f0bad75cb358dc1d91e5cfcdeda10ba7.tar.gz
ingen-44859a84f0bad75cb358dc1d91e5cfcdeda10ba7.tar.bz2
ingen-44859a84f0bad75cb358dc1d91e5cfcdeda10ba7.zip
Bind ports with lv2:portProperty lv2:toggled specially (on iff value >= half).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2410 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/Port.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp
index d710f10d..84557548 100644
--- a/src/gui/Port.cpp
+++ b/src/gui/Port.cpp
@@ -224,9 +224,9 @@ Port::property_changed(const URI& key, const Atom& value)
set_control_min(value.get_float());
else if (key == uris.lv2_maximum)
set_control_max(value.get_float());
- } else if (value.type() == Atom::BOOL) {
- if ((key == uris.lv2_toggled))
- set_toggled(value.get_bool());
+ } else if (key == uris.lv2_portProperty) {
+ if (value == uris.lv2_toggled)
+ set_toggled(true);
} else if (value.type() == Atom::URI) {
ArtVpathDash* dash = this->dash();
_rect->property_dash() = dash;