diff options
-rw-r--r-- | src/jalv_console.c | 8 | ||||
-rw-r--r-- | src/jalv_gtkmm2.cpp | 13 | ||||
-rw-r--r-- | src/jalv_internal.h | 3 | ||||
-rw-r--r-- | src/jalv_qt.cpp | 12 |
4 files changed, 0 insertions, 36 deletions
diff --git a/src/jalv_console.c b/src/jalv_console.c index 07e97c6..2a9e9b1 100644 --- a/src/jalv_console.c +++ b/src/jalv_console.c @@ -49,14 +49,6 @@ print_usage(const char* name, bool error) return error ? 1 : 0; } -int -jalv_ui_resize(ZIX_UNUSED Jalv* jalv, - ZIX_UNUSED int width, - ZIX_UNUSED int height) -{ - return height; -} - void jalv_ui_port_event(ZIX_UNUSED Jalv* jalv, ZIX_UNUSED uint32_t port_index, diff --git a/src/jalv_gtkmm2.cpp b/src/jalv_gtkmm2.cpp index ae0ac96..7e70a07 100644 --- a/src/jalv_gtkmm2.cpp +++ b/src/jalv_gtkmm2.cpp @@ -35,19 +35,6 @@ jalv_native_ui_type(void) return "http://lv2plug.in/ns/extensions/ui#GtkUI"; } -int -jalv_ui_resize(Jalv* jalv, int width, int height) -{ - if (jalv->ui_instance) { - GtkWidget* widget = GTK_WIDGET( - suil_instance_get_widget(jalv->ui_instance)); - if (widget) { - gtk_widget_set_size_request(GTK_WIDGET(widget), width, height); - } - } - return 0; -} - void jalv_ui_port_event(Jalv* jalv, uint32_t port_index, diff --git a/src/jalv_internal.h b/src/jalv_internal.h index 9ee880c..d607613 100644 --- a/src/jalv_internal.h +++ b/src/jalv_internal.h @@ -442,9 +442,6 @@ jalv_run(Jalv* jalv, uint32_t nframes); bool jalv_update(Jalv* jalv); -int -jalv_ui_resize(Jalv* jalv, int width, int height); - typedef int (*PresetSink)(Jalv* jalv, const LilvNode* node, const LilvNode* title, diff --git a/src/jalv_qt.cpp b/src/jalv_qt.cpp index 582361f..e9d2121 100644 --- a/src/jalv_qt.cpp +++ b/src/jalv_qt.cpp @@ -343,18 +343,6 @@ jalv_native_ui_type(void) #endif } -int -jalv_ui_resize(Jalv* jalv, int width, int height) -{ - if (jalv->ui_instance && width > 0 && height > 0) { - QWidget* widget = (QWidget*)suil_instance_get_widget(jalv->ui_instance); - if (widget) { - widget->resize(width, height); - } - } - return 0; -} - void jalv_ui_port_event(Jalv* jalv, uint32_t port_index, |