diff options
author | David Robillard <d@drobilla.net> | 2015-05-14 05:29:50 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-05-14 05:29:50 +0000 |
commit | e0508b6f55e83ab2846f84775dc0861f1ee1aa9c (patch) | |
tree | 5db8da50209423d62ecde94386460152a6da5d19 /src | |
parent | ef934721918fda573be7de267cbd3b205c84e8c5 (diff) | |
download | suil-e0508b6f55e83ab2846f84775dc0861f1ee1aa9c.tar.gz suil-e0508b6f55e83ab2846f84775dc0861f1ee1aa9c.tar.bz2 suil-e0508b6f55e83ab2846f84775dc0861f1ee1aa9c.zip |
Only report suil_ui_supported() if necessary wrapper is compiled in.
Fixes issue #1045.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@5679 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/instance.c | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/src/instance.c b/src/instance.c index 0c27ad7..4ace18c 100644 --- a/src/instance.c +++ b/src/instance.c @@ -70,25 +70,42 @@ open_wrapper(SuilHost* host, } const char* module_name = NULL; +#ifdef SUIL_WITH_GTK2_IN_QT4 if (!strcmp(container_type_uri, QT4_UI_URI) && !strcmp(ui_type_uri, GTK2_UI_URI)) { module_name = "suil_gtk2_in_qt4"; - } else if (!strcmp(container_type_uri, GTK2_UI_URI) + } +#endif +#ifdef SUIL_WITH_QT4_IN_GTK2 + if (!strcmp(container_type_uri, GTK2_UI_URI) && !strcmp(ui_type_uri, QT4_UI_URI)) { module_name = "suil_qt4_in_gtk2"; - } else if (!strcmp(container_type_uri, GTK2_UI_URI) + } +#endif +#ifdef SUIL_WITH_X11_IN_GTK2 + if (!strcmp(container_type_uri, GTK2_UI_URI) && !strcmp(ui_type_uri, X11_UI_URI)) { module_name = "suil_x11_in_gtk2"; - } else if (!strcmp(container_type_uri, GTK2_UI_URI) + } +#endif +#ifdef SUIL_WITH_WIN_IN_GTK2 + 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) + } +#endif +#ifdef SUIL_WITH_COCOA_IN_GTK2 + 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) + } +#endif +#ifdef SUIL_WITH_X11_IN_QT4 + if (!strcmp(container_type_uri, QT4_UI_URI) && !strcmp(ui_type_uri, X11_UI_URI)) { module_name = "suil_x11_in_qt4"; } +#endif if (!module_name) { SUIL_ERRORF("Unable to wrap UI type <%s> as type <%s>\n", |