summaryrefslogtreecommitdiff
path: root/gtk2_ardour/main.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-02-19 14:01:59 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-02-19 14:01:59 +0000
commit7885988df9c4a7690424952d9e8557fc87f3ae18 (patch)
treef9dacb318cfad5bf07f303e957b43eaf34b2761e /gtk2_ardour/main.cc
parentef4e7d7b4c318de046cf91ec93dfbda3eb557bf0 (diff)
working VST support with VeSTige header and new FST code
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4637 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/main.cc')
-rw-r--r--gtk2_ardour/main.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc
index d9738e9dc0..5d79cf038d 100644
--- a/gtk2_ardour/main.cc
+++ b/gtk2_ardour/main.cc
@@ -248,10 +248,14 @@ sigpipe_handler (int sig)
}
#ifdef VST_SUPPORT
+
+extern int gui_init (int* argc, char** argv[]);
+
/* this is called from the entry point of a wine-compiled
executable that is linked against gtk2_ardour built
as a shared library.
*/
+
extern "C" {
int ardour_main (int argc, char *argv[])
#else
@@ -267,6 +271,13 @@ int main (int argc, char* argv[])
Glib::thread_init();
gtk_set_locale ();
+#ifdef VST_SUPPORT
+ /* this does some magic that is needed to make GTK and Wine's own
+ X11 client interact properly.
+ */
+ gui_init (&argc, &argv);
+#endif
+
(void) bindtextdomain (PACKAGE, localedir);
/* our i18n translations are all in UTF-8, so make sure
that even if the user locale doesn't specify UTF-8,