summaryrefslogtreecommitdiff
path: root/gtk2_ardour/lxvst_plugin_ui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-10-05 16:17:49 +0200
committerRobin Gareus <robin@gareus.org>2015-10-05 16:17:49 +0200
commit22b07e0233a29d9633ffa825a79503befaf2e16e (patch)
tree1d8b06056f8e12197158f5d906319767d3dedda5 /gtk2_ardour/lxvst_plugin_ui.cc
parente11ba7b79d68bc1070b170236c22123966d7bcc3 (diff)
NOOP, remove trailing tabs/whitespace.
Diffstat (limited to 'gtk2_ardour/lxvst_plugin_ui.cc')
-rw-r--r--gtk2_ardour/lxvst_plugin_ui.cc38
1 files changed, 19 insertions, 19 deletions
diff --git a/gtk2_ardour/lxvst_plugin_ui.cc b/gtk2_ardour/lxvst_plugin_ui.cc
index d2f6e757ed..ad8bc0175a 100644
--- a/gtk2_ardour/lxvst_plugin_ui.cc
+++ b/gtk2_ardour/lxvst_plugin_ui.cc
@@ -38,8 +38,8 @@ LXVSTPluginUI::LXVSTPluginUI (boost::shared_ptr<PluginInsert> pi, boost::shared_
LXVSTPluginUI::~LXVSTPluginUI ()
{
- _screen_update_connection.disconnect();
-
+ _screen_update_connection.disconnect();
+
// plugin destructor destroys the custom GUI, via the vstfx engine,
// and then our PluginUIWindow does the rest
}
@@ -67,35 +67,35 @@ LXVSTPluginUI::resize_callback ()
/* We could maybe use this to resize the plugin GTK parent window
if required
*/
-
+
if (!_vst->state()->want_resize) {
return;
}
int new_height = _vst->state()->height;
int new_width = _vst->state()->width;
-
+
void* gtk_parent_window = _vst->state()->extra_data;
-
+
if (gtk_parent_window) {
((Gtk::Window*) gtk_parent_window)->resize (new_width, new_height + LXVST_H_FIDDLE);
}
-
+
_vst->state()->want_resize = 0;
}
int
LXVSTPluginUI::get_preferred_height ()
-{
+{
/* XXX: FIXME */
-
+
/* We have to return the required height of the plugin UI window + a fiddle factor
because we can't know how big the preset menu bar is until the window is realised
and we can't realise it until we have told it how big we would like it to be
which we can't do until it is realised etc
*/
- // May not be 40 for all screen res etc
+ // May not be 40 for all screen res etc
return VSTPluginUI::get_preferred_height () + LXVST_H_FIDDLE;
}
@@ -103,9 +103,9 @@ int
LXVSTPluginUI::package (Gtk::Window& win)
{
VSTPluginUI::package (win);
-
+
/* Map the UI start and stop updating events to 'Map' events on the Window */
-
+
win.signal_map_event().connect (mem_fun (*this, &LXVSTPluginUI::start_updating));
win.signal_unmap_event().connect (mem_fun (*this, &LXVSTPluginUI::stop_updating));
@@ -129,9 +129,9 @@ LXVSTPluginUI::get_XID ()
created and we get bad Window errors when trying
to embed it in the GTK UI
*/
-
+
pthread_mutex_lock (&(_vst->state()->lock));
-
+
/* The Window may be scheduled for creation
but not actually created by the gui_event_loop yet -
spin here until it has been activated. Possible
@@ -139,21 +139,21 @@ LXVSTPluginUI::get_XID ()
should not be called here if the window doesn't
exist or will never exist
*/
-
+
while (!(_vst->state()->been_activated)) {
Glib::usleep (1000);
}
-
+
int const id = _vst->state()->xid;
-
+
pthread_mutex_unlock (&(_vst->state()->lock));
-
+
/* Finally it might be safe to return the ID -
problems will arise if we return either a zero ID
and GTK tries to socket it or if we return an ID
which hasn't yet become real to the server
*/
-
+
return id;
}
@@ -166,7 +166,7 @@ static int
gtk_xerror_handler (Display*, XErrorEvent*)
{
std::cerr << "** ERROR ** LXVSTPluginUI : Trapped an X Window System Error" << std::endl;
-
+
return 0;
}