diff options
Diffstat (limited to 'gtk2_ardour/splash.cc')
-rw-r--r-- | gtk2_ardour/splash.cc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gtk2_ardour/splash.cc b/gtk2_ardour/splash.cc index 9d4f78957e..11e88cb1ad 100644 --- a/gtk2_ardour/splash.cc +++ b/gtk2_ardour/splash.cc @@ -48,6 +48,28 @@ using namespace ARDOUR; Splash* Splash::the_splash = 0; +Splash* +Splash::instance() +{ + if (!the_splash) { + the_splash = new Splash; + } + return the_splash; +} + +bool +Splash::exists () +{ + return the_splash; +} + +void +Splash::drop () +{ + delete the_splash; + the_splash = 0; +} + Splash::Splash () { assert (the_splash == 0); @@ -208,6 +230,9 @@ Splash::expose (GdkEventExpose* ev) void Splash::boot_message (std::string msg) { + if (!is_visible()) { + display (); + } message (msg); } |