use new VisibilityTracker class for ArdourWindow
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user