hide splash in a sensible and understandable way
This commit is contained in:
@@ -859,6 +859,13 @@ ARDOUR_UI::check_announcements ()
|
||||
#endif
|
||||
}
|
||||
|
||||
static bool
|
||||
_hide_splash (gpointer arg)
|
||||
{
|
||||
((ARDOUR_UI*)arg)->hide_splash();
|
||||
return false;
|
||||
}
|
||||
|
||||
int
|
||||
ARDOUR_UI::starting ()
|
||||
{
|
||||
@@ -1039,6 +1046,12 @@ ARDOUR_UI::starting ()
|
||||
_status_bar_visibility.update ();
|
||||
|
||||
BootMessage (string_compose (_("%1 is ready for use"), PROGRAM_NAME));
|
||||
|
||||
if (splash && splash->is_visible()) {
|
||||
// in 1 second, hide the splash screen
|
||||
Glib::signal_timeout().connect (sigc::bind (sigc::ptr_fun (_hide_splash), this), 1000);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -326,13 +326,6 @@ ARDOUR_UI::unload_session (bool hide_stuff)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static bool
|
||||
_hide_splash (gpointer arg)
|
||||
{
|
||||
((ARDOUR_UI*)arg)->hide_splash();
|
||||
return false;
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::show_tabbable (Tabbable* t)
|
||||
{
|
||||
@@ -340,11 +333,6 @@ ARDOUR_UI::show_tabbable (Tabbable* t)
|
||||
return;
|
||||
}
|
||||
|
||||
if (splash && splash->is_visible()) {
|
||||
// in 2 seconds, hide the splash screen
|
||||
Glib::signal_timeout().connect (sigc::bind (sigc::ptr_fun (_hide_splash), this), 2000);
|
||||
}
|
||||
|
||||
t->make_visible ();
|
||||
}
|
||||
|
||||
@@ -363,10 +351,6 @@ ARDOUR_UI::attach_tabbable (Tabbable* t)
|
||||
if (!t) {
|
||||
return;
|
||||
}
|
||||
if (splash && splash->is_visible()) {
|
||||
// in 2 seconds, hide the splash screen
|
||||
Glib::signal_timeout().connect (sigc::bind (sigc::ptr_fun (_hide_splash), this), 2000);
|
||||
}
|
||||
|
||||
t->attach ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user