summaryrefslogtreecommitdiffstats
path: root/src/instance.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/instance.c')
-rw-r--r--src/instance.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/instance.c b/src/instance.c
index 42ea7b8..d365ca2 100644
--- a/src/instance.c
+++ b/src/instance.c
@@ -61,7 +61,9 @@ suil_ui_supported(const char* host_type_uri,
|| (!strcmp(host_type_uri, QT4_UI_URI)
&& !strcmp(ui_type_uri, X11_UI_URI))
|| (!strcmp(host_type_uri, QT5_UI_URI)
- && !strcmp(ui_type_uri, X11_UI_URI))) {
+ && !strcmp(ui_type_uri, X11_UI_URI))
+ || (!strcmp(host_type_uri, QT5_UI_URI)
+ && !strcmp(ui_type_uri, COCOA_UI_URI))) {
return SUIL_WRAPPING_EMBEDDED;
} else {
return SUIL_WRAPPING_UNSUPPORTED;
@@ -136,6 +138,12 @@ open_wrapper(SuilHost* host,
module_name = "suil_x11_in_qt5";
}
#endif
+#ifdef SUIL_WITH_COCOA_IN_QT5
+ if (!strcmp(container_type_uri, QT5_UI_URI)
+ && !strcmp(ui_type_uri, COCOA_UI_URI)) {
+ module_name = "suil_cocoa_in_qt5";
+ }
+#endif
if (!module_name) {
SUIL_ERRORF("Unable to wrap UI type <%s> as type <%s>\n",