mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
use new VisibilityTracker class for ArdourWindow
This commit is contained in:
parent
bd2d4d4247
commit
7c19d00544
2 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue