summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-02-21 17:28:47 +0100
committerRobin Gareus <robin@gareus.org>2014-02-22 03:11:48 +0100
commit40aa7e5e9034321f8af0b3067bd5f3005c537d5d (patch)
treeb938f43360f4512af99d1324d1b93fcf2d75d89d /gtk2_ardour
parent99076689f74a1d1a2cc33e9bc7d22131c3a04633 (diff)
first part of merging windows and wine VST
libfst is now very ardour specific (no longer compatible with /upstream/)
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/vst_plugin_ui.cc15
-rw-r--r--gtk2_ardour/vst_plugin_ui.h3
-rw-r--r--gtk2_ardour/windows_vst_plugin_ui.cc2
3 files changed, 19 insertions, 1 deletions
diff --git a/gtk2_ardour/vst_plugin_ui.cc b/gtk2_ardour/vst_plugin_ui.cc
index 6c30813821..be8eae3240 100644
--- a/gtk2_ardour/vst_plugin_ui.cc
+++ b/gtk2_ardour/vst_plugin_ui.cc
@@ -79,6 +79,21 @@ VSTPluginUI::package (Gtk::Window& win)
}
bool
+VSTPluginUI::on_window_show(const std::string& title)
+{
+ _vst->state()->gui_shown = 1;
+ return PlugUIBase::on_window_show(title);
+}
+
+void
+VSTPluginUI::on_window_hide()
+{
+ _vst->state()->gui_shown = 0;
+ PlugUIBase::on_window_hide();
+}
+
+
+bool
VSTPluginUI::configure_handler (GdkEventConfigure*)
{
XEvent event;
diff --git a/gtk2_ardour/vst_plugin_ui.h b/gtk2_ardour/vst_plugin_ui.h
index 9ab38fe446..7339186975 100644
--- a/gtk2_ardour/vst_plugin_ui.h
+++ b/gtk2_ardour/vst_plugin_ui.h
@@ -35,6 +35,9 @@ public:
virtual int get_preferred_height ();
virtual int get_preferred_width ();
+ bool on_window_show (const std::string& title);
+ void on_window_hide();
+
virtual int package (Gtk::Window &);
bool non_gtk_gui () const { return true; }
diff --git a/gtk2_ardour/windows_vst_plugin_ui.cc b/gtk2_ardour/windows_vst_plugin_ui.cc
index 0652168f5b..e902b63860 100644
--- a/gtk2_ardour/windows_vst_plugin_ui.cc
+++ b/gtk2_ardour/windows_vst_plugin_ui.cc
@@ -34,7 +34,7 @@ using namespace PBD;
WindowsVSTPluginUI::WindowsVSTPluginUI (boost::shared_ptr<PluginInsert> pi, boost::shared_ptr<VSTPlugin> vp)
: VSTPluginUI (pi, vp)
{
- fst_run_editor (_vst->state());
+ fst_run_editor (_vst->state(), NULL);
pack_start (plugin_analysis_expander, true, true);
}