diff options
author | David Robillard <d@drobilla.net> | 2022-08-16 17:02:47 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-17 13:51:26 -0400 |
commit | 116f1577bc6ce7262dc46917e48a9c685cbb574a (patch) | |
tree | e61a74171982792645113578db3b8b34aba922a0 | |
parent | 701c987c2e0147bb510628f831339bd3bc7dcd81 (diff) | |
download | jalv-116f1577bc6ce7262dc46917e48a9c685cbb574a.tar.gz jalv-116f1577bc6ce7262dc46917e48a9c685cbb574a.tar.bz2 jalv-116f1577bc6ce7262dc46917e48a9c685cbb574a.zip |
Support both rdfs:label and lv2:name for port group labels
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | src/jalv_gtk.c | 6 |
2 files changed, 8 insertions, 1 deletions
@@ -19,9 +19,10 @@ jalv (1.6.7) unstable; urgency=medium * Propagate worker errors to the scheduler when possible * Remove Gtkmm interface * Remove Qt4 support + * Support both rdfs:label and lv2:name for port group labels * Switch to meson build system - -- David Robillard <d@drobilla.net> Wed, 10 Aug 2022 17:04:22 +0000 + -- David Robillard <d@drobilla.net> Tue, 16 Aug 2022 21:02:29 +0000 jalv (1.6.6) stable; urgency=medium diff --git a/src/jalv_gtk.c b/src/jalv_gtk.c index 40f7e28..7a8d942 100644 --- a/src/jalv_gtk.c +++ b/src/jalv_gtk.c @@ -1210,6 +1210,12 @@ build_control_widget(Jalv* jalv, GtkWidget* window) if (group && !lilv_node_equals(group, last_group)) { LilvNode* group_name = lilv_world_get(jalv->world, group, jalv->nodes.lv2_name, NULL); + + if (!group_name) { + group_name = + lilv_world_get(jalv->world, group, jalv->nodes.rdfs_label, NULL); + } + GtkWidget* group_label = new_label(lilv_node_as_string(group_name), true, 0.0f, 1.0f); gtk_table_attach(GTK_TABLE(port_table), |