From 54acf6af6a4b571863e1c69be4defad6b222bc32 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 11 Oct 2019 14:29:55 -0600 Subject: enforce singleton nature of Splash a little more rigorously, and slightly rationalize it's use --- gtk2_ardour/splash.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/splash.h') diff --git a/gtk2_ardour/splash.h b/gtk2_ardour/splash.h index fc0a458237..342673cd76 100644 --- a/gtk2_ardour/splash.h +++ b/gtk2_ardour/splash.h @@ -34,10 +34,11 @@ class ARDOUR_UI; class Splash : public Gtk::Window { public: - Splash (); ~Splash (); - static Splash* instance() { return the_splash; } + static Splash* instance(); + static void drop(); + static bool exists (); void display (); void pop_back_for (Gtk::Window&); @@ -51,6 +52,7 @@ public: void hide (); private: + Splash (); static Splash* the_splash; Glib::RefPtr pixbuf; -- cgit v1.2.3