make global connection window inherit from ArdourDialog
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 14 Dec 2010 13:48:21 +0000 (13:48 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 14 Dec 2010 13:48:21 +0000 (13:48 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8269 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/global_port_matrix.cc
gtk2_ardour/global_port_matrix.h

index 3aa08bb218fe8a051b92a5cb8316bb1b0b24440c..318263a9cde4ce5e37407d171ad047f77799f9b0 100644 (file)
@@ -144,7 +144,8 @@ GlobalPortMatrix::get_state (BundleChannel c[2]) const
 }
 
 GlobalPortMatrixWindow::GlobalPortMatrixWindow (Session* s, DataType t)
-       : _port_matrix (this, s, t)
+       : ArdourDialog (X_("reset me soon"))
+        , _port_matrix (this, s, t)
 {
        switch (t) {
        case DataType::AUDIO:
@@ -155,7 +156,7 @@ GlobalPortMatrixWindow::GlobalPortMatrixWindow (Session* s, DataType t)
                break;
        }
 
-       add (_port_matrix);
+       get_vbox()->pack_start (_port_matrix, true, true);
        _port_matrix.show ();
 }
 
index 734c2ff60944b38f2847cb58c986781d34b19e16..2ecf26c33d5903bd2d7e5ea0710d3959878d9840 100644 (file)
@@ -50,8 +50,7 @@ private:
        };
 };
 
-
-class GlobalPortMatrixWindow : public Gtk::Window
+class GlobalPortMatrixWindow : public ArdourDialog
 {
 public:
        GlobalPortMatrixWindow (ARDOUR::Session *, ARDOUR::DataType);