summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-03-15 01:36:30 +0000
committerDavid Robillard <d@drobilla.net>2015-03-15 01:36:30 +0000
commit6e7dd78ab4d0960c4659599f8b73bc23a2db079b (patch)
treef50cac7ea177a04df43e9253b76a73e6fe5d2fba /src
parentcec60c94720d15ed7f5187f72901b771c49d8032 (diff)
downloadingen-6e7dd78ab4d0960c4659599f8b73bc23a2db079b.tar.gz
ingen-6e7dd78ab4d0960c4659599f8b73bc23a2db079b.tar.bz2
ingen-6e7dd78ab4d0960c4659599f8b73bc23a2db079b.zip
Bevel edges of sequence ports.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5633 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/gui/Port.cpp12
-rw-r--r--src/gui/wscript2
2 files changed, 13 insertions, 1 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp
index 908d71cf..8076eb60 100644
--- a/src/gui/Port.cpp
+++ b/src/gui/Port.cpp
@@ -93,6 +93,10 @@ Port::Port(App& app,
set_is_controllable(pm->is_numeric() && pm->is_input());
+ Ganv::Port::set_beveled(model()->is_a(_app.uris().lv2_ControlPort) ||
+ model()->has_property(_app.uris().atom_bufferType,
+ _app.uris().atom_Sequence));
+
update_metadata();
value_changed(pm->value());
}
@@ -520,6 +524,10 @@ Port::property_changed(const Raul::URI& key, const Atom& value)
_app.world()->conf().option("human-names").get<int32_t>()) {
set_label(value.ptr<char>());
}
+ } else if (key == uris.rdf_type || key == uris.atom_bufferType) {
+ Ganv::Port::set_beveled(model()->is_a(uris.lv2_ControlPort) ||
+ model()->has_property(uris.atom_bufferType,
+ uris.atom_Sequence));
}
}
@@ -529,6 +537,10 @@ Port::property_removed(const Raul::URI& key, const Atom& value)
const URIs& uris = _app.uris();
if (key == uris.lv2_minimum || key == uris.lv2_maximum) {
update_metadata();
+ } else if (key == uris.rdf_type || key == uris.atom_bufferType) {
+ Ganv::Port::set_beveled(model()->is_a(uris.lv2_ControlPort) ||
+ model()->has_property(uris.atom_bufferType,
+ uris.atom_Sequence));
}
}
diff --git a/src/gui/wscript b/src/gui/wscript
index ea3079da..203d7570 100644
--- a/src/gui/wscript
+++ b/src/gui/wscript
@@ -13,7 +13,7 @@ def configure(conf):
autowaf.check_pkg(conf, 'gtkmm-2.4', uselib_store='NEW_GTKMM',
atleast_version='2.14.0', mandatory=False)
autowaf.check_pkg(conf, 'ganv-1', uselib_store='GANV',
- atleast_version='1.5.2', mandatory=False)
+ atleast_version='1.5.3', mandatory=False)
if not Options.options.no_webkit:
autowaf.check_pkg(conf, 'webkit-1.0', uselib_store='WEBKIT',
atleast_version='1.4.0', mandatory=False)