summaryrefslogtreecommitdiffstats
path: root/src/x11_in_gtk2.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-26 03:58:21 +0000
committerDavid Robillard <d@drobilla.net>2012-03-26 03:58:21 +0000
commit15c291b3dd247dd30141b40a3d204f47aa7bc1af (patch)
tree2b12389ad4009c82c9e8820fc5cf07104f820aee /src/x11_in_gtk2.c
parent6d02219044cbafc072c0eed93ce65eddc17b0961 (diff)
downloadsuil-15c291b3dd247dd30141b40a3d204f47aa7bc1af.tar.gz
suil-15c291b3dd247dd30141b40a3d204f47aa7bc1af.tar.bz2
suil-15c291b3dd247dd30141b40a3d204f47aa7bc1af.zip
Update for latest LV2.
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@4106 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/x11_in_gtk2.c')
-rw-r--r--src/x11_in_gtk2.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/x11_in_gtk2.c b/src/x11_in_gtk2.c
index e860322..d939cc4 100644
--- a/src/x11_in_gtk2.c
+++ b/src/x11_in_gtk2.c
@@ -71,14 +71,12 @@ suil_x11_wrapper_realize(GtkWidget* w, gpointer data)
gtk_widget_show_all(GTK_WIDGET(wrap->plug));
}
-#ifdef HAVE_LV2_UI_RESIZE
static int
-wrapper_resize(LV2_UI_Resize_Feature_Data data, int width, int height)
+wrapper_resize(LV2UI_Resize_Handle handle, int width, int height)
{
- gtk_widget_set_size_request(GTK_WIDGET(data), width, height);
+ gtk_widget_set_size_request(GTK_WIDGET(handle), width, height);
return 0;
}
-#endif
static int
wrapper_wrap(SuilWrapper* wrapper,
@@ -135,15 +133,13 @@ suil_wrapper_new(SuilHost* host,
wrapper->features[n_features + 1] = NULL;
wrapper->features[n_features + 2] = NULL;
-#ifdef HAVE_LV2_UI_RESIZE
- wrapper->resize.data = wrap;
+ wrapper->resize.handle = wrap;
wrapper->resize.ui_resize = wrapper_resize;
LV2_Feature* resize_feature = (LV2_Feature*)malloc(sizeof(LV2_Feature));
resize_feature->URI = "http://lv2plug.in/ns/ext/ui-resize#UIResize";
resize_feature->data = &wrapper->resize;
wrapper->features[n_features + 1] = resize_feature;
-#endif
return wrapper;
}