summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-03-02 18:36:28 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-03-02 18:36:28 +0000
commitb800dc207ddc2cad32f96189e9700bc70e9b5942 (patch)
tree0986bb35506e9f1a3dafc060fca30bce732c1b58 /gtk2_ardour
parent1ea01b7257100e5dde2f77280794d4b32bf5868c (diff)
make per-track port matrix dialog into a real dialog, complete with ctrl-w handling
git-svn-id: svn://localhost/ardour2/branches/3.0@9040 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/io_selector.cc8
-rw-r--r--gtk2_ardour/io_selector.h3
2 files changed, 6 insertions, 5 deletions
diff --git a/gtk2_ardour/io_selector.cc b/gtk2_ardour/io_selector.cc
index 3217e2e81f..61895896d2 100644
--- a/gtk2_ardour/io_selector.cc
+++ b/gtk2_ardour/io_selector.cc
@@ -213,13 +213,13 @@ IOSelector::channel_noun () const
}
IOSelectorWindow::IOSelectorWindow (ARDOUR::Session* session, boost::shared_ptr<ARDOUR::IO> io, bool /*can_cancel*/)
- : _selector (this, session, io)
+ : ArdourDialog (_("I/O selector"))
+ , _selector (this, session, io)
{
set_name ("IOSelectorWindow2");
- set_title (_("I/O selector"));
-
- add (_selector);
+ get_vbox()->pack_start (_selector);
+
set_position (Gtk::WIN_POS_MOUSE);
io_name_changed (this);
diff --git a/gtk2_ardour/io_selector.h b/gtk2_ardour/io_selector.h
index c3500f1a1d..bb103d0d5d 100644
--- a/gtk2_ardour/io_selector.h
+++ b/gtk2_ardour/io_selector.h
@@ -21,6 +21,7 @@
#define __gtkardour_io_selector_h__
#include "port_matrix.h"
+#include "ardour_dialog.h"
class IOSelector : public PortMatrix
{
@@ -66,7 +67,7 @@ class IOSelector : public PortMatrix
PBD::ScopedConnection _io_connection;
};
-class IOSelectorWindow : public Gtk::Window
+class IOSelectorWindow : public ArdourDialog
{
public:
IOSelectorWindow (ARDOUR::Session *, boost::shared_ptr<ARDOUR::IO>, bool can_cancel = false);