summaryrefslogtreecommitdiffstats
path: root/src/instance.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-10-29 01:14:26 +0000
committerDavid Robillard <d@drobilla.net>2014-10-29 01:14:26 +0000
commitfbdb13400bd5e5d77b36bcdf891927c7efc4d0cf (patch)
treed33db62231cb69799f64cdb7b390db2ee513a3c4 /src/instance.c
parentca61e810890985e461b96e8461b6e1e43a55752f (diff)
downloadsuil-fbdb13400bd5e5d77b36bcdf891927c7efc4d0cf.tar.gz
suil-fbdb13400bd5e5d77b36bcdf891927c7efc4d0cf.tar.bz2
suil-fbdb13400bd5e5d77b36bcdf891927c7efc4d0cf.zip
Add Cocoa in Gtk wrapper (patch from Robin Gareus) (fix #988).
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@5475 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/instance.c')
-rw-r--r--src/instance.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/instance.c b/src/instance.c
index 67cb8cb..6bc7a9c 100644
--- a/src/instance.c
+++ b/src/instance.c
@@ -26,6 +26,7 @@
#define QT4_UI_URI LV2_UI__Qt4UI
#define X11_UI_URI LV2_UI__X11UI
#define WIN_UI_URI LV2_UI_PREFIX "WindowsUI"
+#define COCOA_UI_URI LV2_UI__CocoaUI
SUIL_API
unsigned
@@ -47,6 +48,8 @@ suil_ui_supported(const char* container_type_uri,
&& !strcmp(ui_type_uri, X11_UI_URI))
|| (!strcmp(container_type_uri, GTK2_UI_URI)
&& !strcmp(ui_type_uri, WIN_UI_URI))
+ || (!strcmp(container_type_uri, GTK2_UI_URI)
+ && !strcmp(ui_type_uri, COCOA_UI_URI))
|| (!strcmp(container_type_uri, QT4_UI_URI)
&& !strcmp(ui_type_uri, X11_UI_URI))) {
return SUIL_WRAPPING_EMBEDDED;
@@ -79,6 +82,9 @@ open_wrapper(SuilHost* host,
} else if (!strcmp(container_type_uri, GTK2_UI_URI)
&& !strcmp(ui_type_uri, WIN_UI_URI)) {
module_name = "suil_win_in_gtk2";
+ } else if (!strcmp(container_type_uri, GTK2_UI_URI)
+ && !strcmp(ui_type_uri, COCOA_UI_URI)) {
+ module_name = "suil_cocoa_in_gtk2";
} else if (!strcmp(container_type_uri, QT4_UI_URI)
&& !strcmp(ui_type_uri, X11_UI_URI)) {
module_name = "suil_x11_in_qt4";