X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fvst_plugin_ui.cc;h=a964e96b4ee920ecb08f233c6e8cb8f779ade326;hb=f371ac1beb035716ef2e1def831a61bd4b5020c2;hp=3afb17a652734f7428446ea98b89e90d2d1a7a7f;hpb=912f07b919c1ec44f0cdd5278d74a9bc29b91846;p=ardour.git diff --git a/gtk2_ardour/vst_plugin_ui.cc b/gtk2_ardour/vst_plugin_ui.cc index 3afb17a652..a964e96b4e 100644 --- a/gtk2_ardour/vst_plugin_ui.cc +++ b/gtk2_ardour/vst_plugin_ui.cc @@ -20,6 +20,7 @@ #include #include "ardour/vst_plugin.h" #include "ardour/vst_types.h" +#include "ardour/plugin_insert.h" #include "vst_plugin_ui.h" #ifdef PLATFORM_WINDOWS @@ -38,7 +39,8 @@ VSTPluginUI::VSTPluginUI (boost::shared_ptr insert, boost: box->set_spacing (6); box->set_border_width (6); box->pack_end (focus_button, false, false); - box->pack_end (bypass_button, false, false, 10); + box->pack_end (bypass_button, false, false, 4); + box->pack_end (reset_button, false, false, 4); box->pack_end (delete_button, false, false); box->pack_end (save_button, false, false); box->pack_end (add_button, false, false); @@ -49,6 +51,7 @@ VSTPluginUI::VSTPluginUI (boost::shared_ptr insert, boost: pack_start (*box, false, false); #ifdef GDK_WINDOWING_X11 pack_start (_socket, true, true); + _socket.set_border_width (0); #endif } @@ -58,12 +61,12 @@ VSTPluginUI::~VSTPluginUI () } void -VSTPluginUI::preset_selected () +VSTPluginUI::preset_selected (ARDOUR::Plugin::PresetRecord preset) { #ifdef GDK_WINDOWING_X11 _socket.grab_focus (); #endif - PlugUIBase::preset_selected (); + PlugUIBase::preset_selected (preset); } int @@ -87,8 +90,11 @@ VSTPluginUI::package (Gtk::Window& win) /* This assumes that the window's owner understands the XEmbed protocol */ _socket.add_id (get_XID ()); + _socket.set_size_request( + _vst->state()->width + _vst->state()->hoffset, + _vst->state()->height + _vst->state()->voffset); #endif - + return 0; } @@ -147,4 +153,3 @@ VSTPluginUI::configure_handler (GdkEventConfigure*) #endif return false; } -