summaryrefslogtreecommitdiff
path: root/gtk2_ardour/windows_vst_plugin_ui.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-11-22 15:14:41 +0000
committerCarl Hetherington <carl@carlh.net>2011-11-22 15:14:41 +0000
commitd1226a8628f11d32251666d5fb9d9dabbc44446c (patch)
tree511f336fb8113e35ec9bb4642db5e674f94195ae /gtk2_ardour/windows_vst_plugin_ui.cc
parent84f2049023df4279b3f0644abb59a938a2bf8c4e (diff)
Push most of LXVSTPlugin and WindowsVSTPlugin up to VSTPlugin parent.
git-svn-id: svn://localhost/ardour2/branches/3.0@10773 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/windows_vst_plugin_ui.cc')
-rw-r--r--gtk2_ardour/windows_vst_plugin_ui.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk2_ardour/windows_vst_plugin_ui.cc b/gtk2_ardour/windows_vst_plugin_ui.cc
index 1a966109ae..3c80951ff0 100644
--- a/gtk2_ardour/windows_vst_plugin_ui.cc
+++ b/gtk2_ardour/windows_vst_plugin_ui.cc
@@ -35,7 +35,7 @@ WindowsVSTPluginUI::WindowsVSTPluginUI (boost::shared_ptr<PluginInsert> pi, boos
: PlugUIBase (pi),
vst (vp)
{
- fst_run_editor (vst->fst());
+ fst_run_editor (vst->state());
preset_box.set_spacing (6);
preset_box.set_border_width (6);
@@ -69,13 +69,13 @@ WindowsVSTPluginUI::preset_selected ()
int
WindowsVSTPluginUI::get_preferred_height ()
{
- return vst->fst()->height;
+ return vst->state()->height;
}
int
WindowsVSTPluginUI::get_preferred_width ()
{
- return vst->fst()->width;
+ return vst->state()->width;
}
int
@@ -89,9 +89,9 @@ WindowsVSTPluginUI::package (Gtk::Window& win)
this assumes that the window's owner understands the XEmbed protocol.
*/
- socket.add_id (fst_get_XID (vst->fst()));
+ socket.add_id (fst_get_XID (vst->state ()));
- fst_move_window_into_view (vst->fst());
+ fst_move_window_into_view (vst->state ());
return 0;
}
@@ -140,7 +140,7 @@ WindowsVSTPluginUI::forward_key_event (GdkEventKey* ev)
{
if (ev->type == GDK_KEY_PRESS) {
- VSTState* fst = vst->fst ();
+ VSTState* fst = vst->state ();
pthread_mutex_lock (&fst->lock);
if (fst->n_pending_keys == (sizeof (fst->pending_keys) * sizeof (VSTKey))) {
@@ -204,6 +204,6 @@ windows_vst_gui_init (int *argc, char **argv[])
wine_error_handler = XSetErrorHandler (NULL);
gtk_init (argc, argv);
the_gtk_display = gdk_x11_display_get_xdisplay (gdk_display_get_default());
- gtk_error_handler = XSetErrorHandler( fst_xerror_handler );
+ gtk_error_handler = XSetErrorHandler (fst_xerror_handler);
}