use new VisibilityTracker class for ArdourWindow

This commit is contained in:
Paul Davis 2013-03-25 20:04:36 -04:00
parent bd2d4d4247
commit 7c19d00544
2 changed files with 6 additions and 1 deletions

View File

@ -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);
}

View File

@ -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);