diff options
-rw-r--r-- | src/gui/Port.cpp | 12 | ||||
-rw-r--r-- | src/gui/wscript | 2 |
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) |