[LV2] [PATCH 1/3] ignore not-on-gui and reportsLatency ports

Robin Gareus robin at gareus.org
Sat May 25 03:30:57 PDT 2013


---
 jalv/src/jalv_gtk.c |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/jalv/src/jalv_gtk.c b/jalv/src/jalv_gtk.c
index 45d1080..ebec756 100644
--- a/jalv/src/jalv_gtk.c
+++ b/jalv/src/jalv_gtk.c
@@ -592,6 +592,8 @@ build_control_widget(Jalv* jalv, GtkWidget* window)
 	LilvNode*   lv2_toggled     = lilv_new_uri(world, LV2_CORE__toggled);
 	LilvNode*   patch_writable  = lilv_new_uri(world, LV2_PATCH__writable);
 	LilvNode*   rdfs_comment    = lilv_new_uri(world, LILV_NS_RDFS "comment");
+	LilvNode*   reportsLatency  = lilv_new_uri(world, LV2_CORE__reportsLatency);
+	LilvNode*   notOnGui        = lilv_new_uri(world, LV2_PORT_PROPS__notOnGUI);
 	GtkWidget*  port_table      = gtk_table_new(jalv->num_ports, 3, false);
 
 	/* Get the min and max of all ports (or NaN if unavailable) */
@@ -617,6 +619,15 @@ build_control_widget(Jalv* jalv, GtkWidget* window)
 		LilvNode*       name  = lilv_port_get_name(plugin, port);
 
 		LilvNode* group = lilv_port_get(plugin, port, jalv->nodes.pg_group);
+
+		if (lilv_port_has_property(plugin, port, notOnGui)) {
+			continue;
+		}
+
+		if (lilv_port_has_property(plugin, port, reportsLatency)) {
+			continue;
+		}
+
 		if (group && !lilv_node_equals(group, last_group)) {
 			/* Group has changed, add a heading row here */
 			LilvNode* group_name = lilv_world_get(
-- 
1.7.10.4




More information about the Devel mailing list