summaryrefslogtreecommitdiff
path: root/gtk2_ardour/splash.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-01-10 18:21:39 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-01-10 18:21:39 +0000
commitb53c92b652563f682ec414f46c8aca724ce630cd (patch)
tree2c677a73af3d4b725bff241400d712878bae2b39 /gtk2_ardour/splash.cc
parentea99ee68d9eecf53a687faefe3dbc79b6c6bea0e (diff)
the return of the splash, with a few changes to help with window layering a little
git-svn-id: svn://localhost/ardour2/branches/3.0@11222 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/splash.cc')
-rw-r--r--gtk2_ardour/splash.cc12
1 files changed, 10 insertions, 2 deletions
diff --git a/gtk2_ardour/splash.cc b/gtk2_ardour/splash.cc
index 01f0db9f9f..d459a308b1 100644
--- a/gtk2_ardour/splash.cc
+++ b/gtk2_ardour/splash.cc
@@ -35,7 +35,7 @@ Splash::Splash ()
}
darea.set_size_request (pixbuf->get_width(), pixbuf->get_height());
- set_keep_above (true);
+ pop_front ();
set_position (WIN_POS_CENTER);
darea.add_events (Gdk::BUTTON_PRESS_MASK|Gdk::BUTTON_RELEASE_MASK);
darea.set_double_buffered (false);
@@ -60,9 +60,17 @@ Splash::Splash ()
}
void
-Splash::pop_back ()
+Splash::pop_back_for (Gtk::Window& win)
{
set_keep_above (false);
+ get_window()->restack (win.get_window(), false);
+ win.signal_hide().connect (sigc::mem_fun (*this, &Splash::pop_front));
+}
+
+void
+Splash::pop_front ()
+{
+ set_keep_above (true);
}
void