~hp/midi_matrix.lv2

07ebc0fbfc128f4f4145d74b1ad69c687575ee90 — Hanspeter Portner 1 year, 10 months ago c4cbe57
remove deprecated ui:resize feature/extension.
3 files changed, 3 insertions(+), 23 deletions(-)

M VERSION
M midi_matrix_channel_filter_nk.c
M midi_matrix_ui.ttl
M VERSION => VERSION +1 -1
@@ 1,1 1,1 @@
0.31.5
0.31.5 cut -d. -f1.1.7

M midi_matrix_channel_filter_nk.c => midi_matrix_channel_filter_nk.c +1 -20
@@ 150,7 150,6 @@ instantiate(const LV2UI_Descriptor *descriptor,
		return NULL;

	void *parent = NULL;
	LV2UI_Resize *host_resize = NULL;
	LV2_Options_Option *opts = NULL;
	for(int i=0; features[i]; i++)
	{


@@ 158,10 157,6 @@ instantiate(const LV2UI_Descriptor *descriptor,
		{
			parent = features[i]->data;
		}
		else if(!strcmp(features[i]->URI, LV2_UI__resize))
		{
			host_resize = features[i]->data;
		}
		else if(!strcmp(features[i]->URI, LV2_URID__map))
		{
			handle->map = features[i]->data;


@@ 221,7 216,7 @@ instantiate(const LV2UI_Descriptor *descriptor,
	cfg->class = "channel_filter";
	cfg->title = "Channel Filter";
	cfg->parent = (intptr_t)parent;
	cfg->host_resize = host_resize;
	cfg->host_resize = NULL;
	cfg->data = handle;
	cfg->expose = _expose;



@@ 307,25 302,11 @@ static const LV2UI_Idle_Interface idle_ext = {
	.idle = _idle
};

static int
_resize(LV2UI_Handle instance, int width, int height)
{
	plughandle_t *handle = instance;

	return nk_pugl_resize(&handle->win, width, height);
}

static const LV2UI_Resize resize_ext = {
	.ui_resize = _resize
};

static const void *
extension_data(const char *uri)
{
	if(!strcmp(uri, LV2_UI__idleInterface))
		return &idle_ext;
	else if(!strcmp(uri, LV2_UI__resize))
		return &resize_ext;

	return NULL;
}

M midi_matrix_ui.ttl => midi_matrix_ui.ttl +1 -2
@@ 23,6 23,5 @@
# Channel Filter UI
midi_matrix:channel_filter_4_nk
	lv2:requiredFeature ui:idleInterface, urid:map, opts:options, ui:parent ;
	lv2:optionalFeature ui:resize ;
	opts:supportedOption ui:scaleFactor ;
  lv2:extensionData ui:idleInterface, ui:resize .
  lv2:extensionData ui:idleInterface .