diff options
author | David Robillard <d@drobilla.net> | 2019-11-10 11:17:50 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-11-10 11:17:50 +0100 |
commit | 4f437771c583ecf52e717a6b5b08f3182d93fe3c (patch) | |
tree | b48af395df39434dfe4b383164da4605f3e6acab | |
parent | b4e7a7cc20eec3784a70e53bd772f401d61acdb7 (diff) | |
download | jalv-4f437771c583ecf52e717a6b5b08f3182d93fe3c.tar.gz jalv-4f437771c583ecf52e717a6b5b08f3182d93fe3c.tar.bz2 jalv-4f437771c583ecf52e717a6b5b08f3182d93fe3c.zip |
Support rdfs:label for port groups
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | src/jalv_qt.cpp | 6 |
2 files changed, 8 insertions, 1 deletions
@@ -1,8 +1,9 @@ jalv (1.6.3) unstable; * Use screen refresh rate with Gtk3 and Qt5 + * Support rdfs:label for port groups - -- David Robillard <d@drobilla.net> Sun, 03 Nov 2019 19:15:04 +0000 + -- David Robillard <d@drobilla.net> Sun, 10 Nov 2019 10:17:25 +0000 jalv (1.6.2) stable; diff --git a/src/jalv_qt.cpp b/src/jalv_qt.cpp index 5084c03..6789e86 100644 --- a/src/jalv_qt.cpp +++ b/src/jalv_qt.cpp @@ -644,6 +644,12 @@ build_control_widget(Jalv* jalv) /* Group has changed */ LilvNode* groupName = lilv_world_get( world, group, jalv->nodes.lv2_name, NULL); + if (!groupName) { + groupName = lilv_world_get( + world, group, jalv->nodes.rdfs_label, NULL); + } + + fprintf(stderr, "Group name: %p '%s'\n", groupName, lilv_node_as_string(groupName)); QGroupBox* groupBox = new QGroupBox(lilv_node_as_string(groupName)); groupLayout = new QHBoxLayout(); |