diff options
author | David Robillard <d@drobilla.net> | 2022-12-11 12:52:34 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-12-11 13:10:09 -0500 |
commit | 7d02ac164d0da0a7b2e6f1e19fb2ffa90ed469c5 (patch) | |
tree | 86491590a5fada2d139cf627b5de8be3950fcf51 | |
parent | ad39b43b42b25293ef3e72c83c640ff1e315b3dd (diff) | |
download | suil-7d02ac164d0da0a7b2e6f1e19fb2ffa90ed469c5.tar.gz suil-7d02ac164d0da0a7b2e6f1e19fb2ffa90ed469c5.tar.bz2 suil-7d02ac164d0da0a7b2e6f1e19fb2ffa90ed469c5.zip |
Simplify conditional
-rw-r--r-- | src/instance.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/instance.c b/src/instance.c index 60dfee2..3b5ab22 100644 --- a/src/instance.c +++ b/src/instance.c @@ -36,17 +36,14 @@ suil_ui_supported(const char* host_type_uri, const char* ui_type_uri) } if ((!strcmp(host_type_uri, GTK2_UI_URI) && - !strcmp(ui_type_uri, X11_UI_URI)) || + (!strcmp(ui_type_uri, COCOA_UI_URI) || + !strcmp(ui_type_uri, WIN_UI_URI) || + !strcmp(ui_type_uri, X11_UI_URI))) || (!strcmp(host_type_uri, GTK3_UI_URI) && - !strcmp(ui_type_uri, X11_UI_URI)) || - (!strcmp(host_type_uri, GTK2_UI_URI) && - !strcmp(ui_type_uri, WIN_UI_URI)) || - (!strcmp(host_type_uri, GTK2_UI_URI) && - !strcmp(ui_type_uri, COCOA_UI_URI)) || + (!strcmp(ui_type_uri, QT5_UI_URI))) || (!strcmp(host_type_uri, QT5_UI_URI) && - !strcmp(ui_type_uri, X11_UI_URI)) || - (!strcmp(host_type_uri, QT5_UI_URI) && - !strcmp(ui_type_uri, COCOA_UI_URI))) { + (!strcmp(ui_type_uri, COCOA_UI_URI) || + !strcmp(ui_type_uri, X11_UI_URI)))) { return SUIL_WRAPPING_EMBEDDED; } |