aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-10-28 11:44:54 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-10-28 11:44:54 +0200
commit41f046e9479230eda4aaf388c9c282e7b428bfe1 (patch)
tree0d2ddcf4c8122a5a6109d364daedc3a7ce3b8b0b
parent86ec76d77d96f0948245a6794a89a5b21f174823 (diff)
parent97d5b20be56c21cedd0c3fc3d74ebdba09ba873d (diff)
downloadsherlock.lv2-41f046e9479230eda4aaf388c9c282e7b428bfe1.tar.xz
Merge commit '97d5b20be56c21cedd0c3fc3d74ebdba09ba873d'
-rw-r--r--sandbox_ui.lv2/sandbox_slave.c17
-rw-r--r--sandbox_ui.lv2/sandbox_slave.h3
2 files changed, 20 insertions, 0 deletions
diff --git a/sandbox_ui.lv2/sandbox_slave.c b/sandbox_ui.lv2/sandbox_slave.c
index a9d37d0..01504db 100644
--- a/sandbox_ui.lv2/sandbox_slave.c
+++ b/sandbox_ui.lv2/sandbox_slave.c
@@ -54,6 +54,7 @@ struct _sandbox_slave_t {
LilvUIs *uis;
const LilvUI *ui;
+ bool no_user_resize;
void *lib;
const LV2UI_Descriptor *desc;
void *handle;
@@ -318,6 +319,13 @@ sandbox_slave_new(int argc, char **argv, const sandbox_slave_driver_t *driver, v
goto fail;
}
+ LilvNode *no_user_resize_uri = lilv_new_uri(sb->world, LV2_UI__noUserResize);
+ if(no_user_resize_uri)
+ {
+ sb->no_user_resize = lilv_world_ask(sb->world, sb->ui_node, no_user_resize_uri, NULL);
+ lilv_node_free(no_user_resize_uri);
+ }
+
#if defined(LILV_0_22)
char *binary_path = lilv_file_uri_parse(lilv_node_as_string(ui_path), NULL);
#else
@@ -565,3 +573,12 @@ sandbox_slave_title_get(sandbox_slave_t *sb)
return NULL;
}
+
+bool
+sandbox_slave_no_user_resize_get(sandbox_slave_t *sb)
+{
+ if(sb)
+ return sb->no_user_resize;
+
+ return false;
+}
diff --git a/sandbox_ui.lv2/sandbox_slave.h b/sandbox_ui.lv2/sandbox_slave.h
index dcd78bb..7616fc3 100644
--- a/sandbox_ui.lv2/sandbox_slave.h
+++ b/sandbox_ui.lv2/sandbox_slave.h
@@ -66,6 +66,9 @@ sandbox_slave_fd_get(sandbox_slave_t *sb, int *fd);
const char *
sandbox_slave_title_get(sandbox_slave_t *sb);
+bool
+sandbox_slave_no_user_resize_get(sandbox_slave_t *sb);
+
#ifdef __cplusplus
}
#endif