-static bool
-_hide_splash (gpointer arg)
-{
- ((ARDOUR_UI*)arg)->hide_splash();
- return false;
-}
-
-void
-ARDOUR_UI::goto_editor_window ()
-{
- if (splash && splash->is_visible()) {
- // in 2 seconds, hide the splash screen
- Glib::signal_timeout().connect (bind (sigc::ptr_fun (_hide_splash), this), 2000);
- }
-
- editor->show_window ();
- editor->present ();
- _mixer_on_top = false;
- flush_pending ();
-}
-
-void
-ARDOUR_UI::goto_mixer_window ()
-{
- mixer->show_window ();
- mixer->present ();
- _mixer_on_top = true;
- flush_pending ();
-}
-
-void
-ARDOUR_UI::toggle_editor_mixer_on_top ()
-{
- if (_mixer_on_top) {
- goto_editor_window ();
- } else {
- goto_mixer_window ();
- }
-}
-