summaryrefslogtreecommitdiff
path: root/gtk2_ardour/linux_vst_gui_support.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-10-04 14:51:05 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-10-04 14:51:05 -0400
commit4dc63966f0872efe768dad61eb9b8785d06b92d1 (patch)
treee54104d57d6c2da7840979181368151fd0819c96 /gtk2_ardour/linux_vst_gui_support.cc
parent297e80e020da94a56984b20782584bb1dd96ea34 (diff)
globally remove all trailing whitespace from ardour code base.
Paul Davis was responsible for introducing almost all of this.
Diffstat (limited to 'gtk2_ardour/linux_vst_gui_support.cc')
-rw-r--r--gtk2_ardour/linux_vst_gui_support.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/gtk2_ardour/linux_vst_gui_support.cc b/gtk2_ardour/linux_vst_gui_support.cc
index 19671c8ad7..4bae45c71e 100644
--- a/gtk2_ardour/linux_vst_gui_support.cc
+++ b/gtk2_ardour/linux_vst_gui_support.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2012 Paul Davis
+ Copyright (C) 2012 Paul Davis
Based on code by Paul Davis, Torben Hohn as part of FST
This program is free software; you can redistribute it and/or modify
@@ -146,13 +146,13 @@ long getXWindowProperty(Window window, Atom atom)
XErrorHandler olderrorhandler = XSetErrorHandler(TempErrorHandler);
- XGetWindowProperty( LXVST_XDisplay,
- window,
+ XGetWindowProperty( LXVST_XDisplay,
+ window,
atom,
0,
2,
false,
- AnyPropertyType,
+ AnyPropertyType,
&userType,
&userSize,
&userCount,
@@ -195,7 +195,7 @@ dispatch_x_events (XEvent* event, VSTState* vstfx)
when opening a preset manager (you might think that should be spawned as a new window...) */
/*if the size has changed, we flag this so that in lxvst_pluginui.cc we can make the
- change to the GTK parent window in ardour, from its UI thread*/
+ change to the GTK parent window in ardour, from its UI thread*/
if (window == (Window) (vstfx->linux_window)) {
if (width != vstfx->width || height!=vstfx->height) {
@@ -317,7 +317,7 @@ maybe_set_program (VSTState* vstfx)
vstfx->plugin->dispatcher (vstfx->plugin, 68 /* effEndSetProgram */, 0, 0, NULL, 0);
}
- vstfx->want_program = -1;
+ vstfx->want_program = -1;
}
if (vstfx->want_chunk == 1) {
@@ -342,7 +342,7 @@ void* gui_event_loop (void* ptr)
while (!gui_quit)
{
- /* handle window creation requests, destroy requests,
+ /* handle window creation requests, destroy requests,
and run idle callbacks */
/*Look at the XEvent queue - if there are any XEvents we need to handle them,
@@ -395,7 +395,7 @@ void* gui_event_loop (void* ptr)
{
//printf("elapsed %d ms ^= %.2f Hz\n", elapsed_time_ms, 1000.0/(double)elapsed_time_ms); // DEBUG
pthread_mutex_lock (&plugin_mutex);
-
+
again:
/*Parse through the linked list of plugins*/
@@ -421,7 +421,7 @@ again:
pthread_mutex_unlock (&vstfx->lock);
goto again;
- }
+ }
/*Window does not yet exist - scheduled for creation*/
@@ -446,7 +446,7 @@ again:
if (vstfx->dispatcher_wantcall) {
vstfx->dispatcher_retval = vstfx->plugin->dispatcher (
- vstfx->plugin,
+ vstfx->plugin,
vstfx->dispatcher_opcode,
vstfx->dispatcher_index,
vstfx->dispatcher_val,
@@ -497,7 +497,7 @@ int vstfx_init (void* ptr)
pthread_attr_init(&thread_attributes);
- /*Make sure the thread is joinable - this should be the default anyway -
+ /*Make sure the thread is joinable - this should be the default anyway -
so we can join to it on vstfx_exit*/
pthread_attr_setdetachstate(&thread_attributes, PTHREAD_CREATE_JOINABLE);
@@ -632,7 +632,7 @@ int vstfx_create_editor (VSTState* vstfx)
/*Select the events we are interested in receiving - we need Substructure notify so that
if the plugin resizes its window - e.g. Loomer Manifold then we get a message*/
- XSelectInput(LXVST_XDisplay,
+ XSelectInput(LXVST_XDisplay,
parent_window,
SubstructureNotifyMask | ButtonPressMask | ButtonReleaseMask | ButtonMotionMask | ExposureMask);