From 6e7dd78ab4d0960c4659599f8b73bc23a2db079b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 15 Mar 2015 01:36:30 +0000 Subject: Bevel edges of sequence ports. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5633 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/Port.cpp | 12 ++++++++++++ src/gui/wscript | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'src/gui') 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()) { set_label(value.ptr()); } + } 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) -- cgit v1.2.1