diff options
-rw-r--r-- | gtk2_ardour/ardour_window.cc | 3 | ||||
-rw-r--r-- | gtk2_ardour/ardour_window.h | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_window.cc b/gtk2_ardour/ardour_window.cc index 8d3821fe87..616cfbcb66 100644 --- a/gtk2_ardour/ardour_window.cc +++ b/gtk2_ardour/ardour_window.cc @@ -31,6 +31,7 @@ using namespace Gtkmm2ext; ArdourWindow::ArdourWindow (string title) : Window () + , VisibilityTracker (*((Gtk::Window*)this)) { set_title (title); init (); @@ -38,6 +39,7 @@ ArdourWindow::ArdourWindow (string title) ArdourWindow::ArdourWindow (Gtk::Window& parent, string /*title*/) : Window () + , VisibilityTracker (*((Gtk::Window*)this)) { init (); set_transient_for (parent); @@ -74,3 +76,4 @@ ArdourWindow::init () { set_border_width (10); } + diff --git a/gtk2_ardour/ardour_window.h b/gtk2_ardour/ardour_window.h index 0590234140..3b8628d5a7 100644 --- a/gtk2_ardour/ardour_window.h +++ b/gtk2_ardour/ardour_window.h @@ -23,6 +23,8 @@ #include <gtkmm/window.h> #include <gtkmm/window.h> +#include "gtkmm2ext/visibility_tracker.h" + #include "ardour/session_handle.h" /** @@ -31,7 +33,7 @@ * method of connecting and disconnecting from a Session with * all other objects that have a handle on a Session. */ -class ArdourWindow : public Gtk::Window, public ARDOUR::SessionHandlePtr +class ArdourWindow : public Gtk::Window, public ARDOUR::SessionHandlePtr, public Gtkmm2ext::VisibilityTracker { public: ArdourWindow (std::string title); |