[LV2] [PATCH] Add Gtk4 UI class

Alexandros Theodotou alex at zrythm.org
Sat Mar 13 20:33:24 PST 2021


---
 lv2/ui/ui.h        |  1 +
 lv2/ui/ui.meta.ttl | 10 ++++++++++
 lv2/ui/ui.ttl      |  7 +++++++
 3 files changed, 18 insertions(+)

diff --git a/lv2/ui/ui.h b/lv2/ui/ui.h
index fb41d90..b908ddd 100644
--- a/lv2/ui/ui.h
+++ b/lv2/ui/ui.h
@@ -42,6 +42,7 @@
 #define LV2_UI_PREFIX LV2_UI_URI "#"                        ///< http://lv2plug.in/ns/extensions/ui#
 
 #define LV2_UI__CocoaUI          LV2_UI_PREFIX "CocoaUI"           ///< http://lv2plug.in/ns/extensions/ui#CocoaUI
+#define LV2_UI__Gtk4UI           LV2_UI_PREFIX "Gtk4UI"            ///< http://lv2plug.in/ns/extensions/ui#Gtk4UI
 #define LV2_UI__Gtk3UI           LV2_UI_PREFIX "Gtk3UI"            ///< http://lv2plug.in/ns/extensions/ui#Gtk3UI
 #define LV2_UI__GtkUI            LV2_UI_PREFIX "GtkUI"             ///< http://lv2plug.in/ns/extensions/ui#GtkUI
 #define LV2_UI__PortNotification LV2_UI_PREFIX "PortNotification"  ///< http://lv2plug.in/ns/extensions/ui#PortNotification
diff --git a/lv2/ui/ui.meta.ttl b/lv2/ui/ui.meta.ttl
index cb92a86..e786ed3 100644
--- a/lv2/ui/ui.meta.ttl
+++ b/lv2/ui/ui.meta.ttl
@@ -247,6 +247,16 @@ not be used in the same process.
 
 """^^lv2:Markdown .
 
+ui:Gtk4UI
+	lv2:documentation """
+
+The host must guarantee that the Gtk+ 4 library has been initialised and the
+Glib main loop is running before the UI is instantiated.  Note that this UI
+type is not suitable for binary distribution since multiple versions of Gtk can
+not be used in the same process.
+
+"""^^lv2:Markdown .
+
 ui:Qt4UI
 	lv2:documentation """
 
diff --git a/lv2/ui/ui.ttl b/lv2/ui/ui.ttl
index 61f8bca..cc7ae65 100644
--- a/lv2/ui/ui.ttl
+++ b/lv2/ui/ui.ttl
@@ -34,6 +34,13 @@ ui:Gtk3UI
 	rdfs:label "GTK3 UI" ;
 	rdfs:comment "A UI where the widget is a pointer to a Gtk+ 3.0 GtkWidget." .
 
+ui:Gtk4UI
+	a rdfs:Class ,
+		owl:Class ;
+	rdfs:subClassOf ui:UI ;
+	rdfs:label "GTK4 UI" ;
+	rdfs:comment "A UI where the widget is a pointer to a Gtk+ 4.0 GtkWidget." .
+
 ui:Qt4UI
 	a rdfs:Class ,
 		owl:Class ;
-- 
2.30.2



More information about the Devel mailing list