summaryrefslogtreecommitdiff
path: root/gtk2_ardour/global_port_matrix.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-01-26 20:41:22 +0000
committerCarl Hetherington <carl@carlh.net>2009-01-26 20:41:22 +0000
commit7e1b86aceeef477e13b4c35f524034d909acd92c (patch)
treeb30fc62ec08d60cf3d6de99a6ed0d32fe5588b92 /gtk2_ardour/global_port_matrix.cc
parent7dd80013006c36e852039cdde4407c58f0d4b0ac (diff)
Make global port matrix a Gtk::Window rather than an ArdourDialog.
git-svn-id: svn://localhost/ardour2/branches/3.0@4445 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/global_port_matrix.cc')
-rw-r--r--gtk2_ardour/global_port_matrix.cc19
1 files changed, 13 insertions, 6 deletions
diff --git a/gtk2_ardour/global_port_matrix.cc b/gtk2_ardour/global_port_matrix.cc
index 80ddecc813..02a2862105 100644
--- a/gtk2_ardour/global_port_matrix.cc
+++ b/gtk2_ardour/global_port_matrix.cc
@@ -124,12 +124,19 @@ GlobalPortMatrix::get_state (
GlobalPortMatrixWindow::GlobalPortMatrixWindow (ARDOUR::Session& s, ARDOUR::DataType t)
- : ArdourDialog (
- t == ARDOUR::DataType::AUDIO ?
- _("Audio Connections Manager") :
- _("MIDI Connections Manager")),
- _port_matrix (s, t)
+ : _port_matrix (s, t)
{
- get_vbox()->pack_start (_port_matrix);
+ switch (t) {
+ case ARDOUR::DataType::AUDIO:
+ set_title (_("Audio Connections Manager"));
+ break;
+ case ARDOUR::DataType::MIDI:
+ set_title (_("MIDI Connections Manager"));
+ break;
+ }
+
+ Gtk::VBox* vbox = Gtk::manage (new Gtk::VBox);
+ vbox->pack_start (_port_matrix);
+ add (*vbox);
show_all ();
}