diff options
author | David Robillard <d@drobilla.net> | 2012-03-20 05:46:51 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-20 05:46:51 +0000 |
commit | 48d3a107f0526a4a347cf199c9ba2bc387abed56 (patch) | |
tree | 415d9f69f3093350e858c88c82fd640bf719cc3d /src | |
parent | c88444d74f07c9f7ef66bc22701335e93db3f0bb (diff) | |
download | jalv-48d3a107f0526a4a347cf199c9ba2bc387abed56.tar.gz jalv-48d3a107f0526a4a347cf199c9ba2bc387abed56.tar.bz2 jalv-48d3a107f0526a4a347cf199c9ba2bc387abed56.zip |
Check for both ui:fixedSize and ui:noUserResize.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@4088 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/jalv.c | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -548,17 +548,21 @@ jalv_ui_is_resizable(Jalv* jalv) return false; } - const LilvNode* s = lilv_ui_get_uri(jalv->ui); - LilvNode* p = lilv_new_uri(jalv->world, LV2_CORE__requiredFeature); - LilvNode* o = lilv_new_uri(jalv->world, NS_UI "fixedSize"); + const LilvNode* s = lilv_ui_get_uri(jalv->ui); + LilvNode* p = lilv_new_uri(jalv->world, LV2_CORE__requiredFeature); + LilvNode* fs = lilv_new_uri(jalv->world, NS_UI "fixedSize"); + LilvNode* nrs = lilv_new_uri(jalv->world, NS_UI "fixedSize"); - LilvNodes* matches = lilv_world_find_nodes(jalv->world, s, p, o); + LilvNodes* fs_matches = lilv_world_find_nodes(jalv->world, s, p, fs); + LilvNodes* nrs_matches = lilv_world_find_nodes(jalv->world, s, p, nrs); - lilv_node_free(o); + lilv_nodes_free(nrs_matches); + lilv_nodes_free(fs_matches); + lilv_node_free(nrs); + lilv_node_free(fs); lilv_node_free(p); - lilv_nodes_free(matches); - return matches == NULL; + return !fs_matches && !nrs_matches; } void |