X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gtk2_ardour%2Fwindows_vst_plugin_ui.cc;h=45111f840d00b82c0f751e4778564f52a1e6109c;hb=0ef661305daf1e2a451f6ba430c9e882ad6bcb4f;hp=1ce83f8992bd3b10d159493d44d7636bbf83fce4;hpb=912f07b919c1ec44f0cdd5278d74a9bc29b91846;p=ardour.git diff --git a/gtk2_ardour/windows_vst_plugin_ui.cc b/gtk2_ardour/windows_vst_plugin_ui.cc index 1ce83f8992..45111f840d 100644 --- a/gtk2_ardour/windows_vst_plugin_ui.cc +++ b/gtk2_ardour/windows_vst_plugin_ui.cc @@ -38,22 +38,18 @@ using namespace Gtk; using namespace ARDOUR; using namespace PBD; -WindowsVSTPluginUI::WindowsVSTPluginUI (boost::shared_ptr pi, boost::shared_ptr vp) +WindowsVSTPluginUI::WindowsVSTPluginUI (boost::shared_ptr pi, boost::shared_ptr vp, GtkWidget *parent) : VSTPluginUI (pi, vp) { #ifdef GDK_WINDOWING_WIN32 - -#if 0 // TODO verify window vs vbox-widget WRT to plugin_analysis_expander - GtkWindow* wobj = GTK_WINDOW(gtk_widget_get_toplevel(this->gobj())); -#else - GtkVBox* wobj = this->gobj(); -#endif - - gtk_widget_realize(GTK_WIDGET(wobj)); - void* hWndHost = gdk_win32_drawable_get_handle(GTK_WIDGET(wobj)->window); + gtk_widget_realize(parent); + void* hWndHost = gdk_win32_drawable_get_handle(parent->window); fst_run_editor (_vst->state(), hWndHost); + // TODO pack a placeholder (compare to VSTPluginUI::VSTPluginUI X11 socket) + // have placeholder use VSTPluginUI::get_preferred_height(), width() + // TODO pack plugin_analysis_expander at the bottom. #else fst_run_editor (_vst->state(), NULL); pack_start (plugin_analysis_expander, true, true);