summaryrefslogtreecommitdiff
path: root/gtk2_ardour/keyeditor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/keyeditor.cc')
-rw-r--r--gtk2_ardour/keyeditor.cc14
1 files changed, 5 insertions, 9 deletions
diff --git a/gtk2_ardour/keyeditor.cc b/gtk2_ardour/keyeditor.cc
index 88c4682c55..5ebc4178c8 100644
--- a/gtk2_ardour/keyeditor.cc
+++ b/gtk2_ardour/keyeditor.cc
@@ -53,7 +53,7 @@ using namespace PBD;
using Gtkmm2ext::Keyboard;
KeyEditor::KeyEditor ()
- : ArdourDialog (_("Key Bindings"), false)
+ : ArdourWindow (_("Key Bindings"))
, unbind_button (_("Remove shortcut"))
, unbind_box (BUTTONBOX_END)
@@ -79,9 +79,7 @@ KeyEditor::KeyEditor ()
scroller.add (view);
scroller.set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC);
-
- get_vbox()->set_spacing (6);
- get_vbox()->pack_start (scroller);
+ add (scroller);
if (!ARDOUR::Profile->get_sae()) {
@@ -92,14 +90,12 @@ KeyEditor::KeyEditor ()
unbind_box.pack_start (unbind_button, false, false);
unbind_button.signal_clicked().connect (sigc::mem_fun (*this, &KeyEditor::unbind));
- get_vbox()->pack_start (unbind_box, false, false);
+ add (unbind_box);
unbind_box.show ();
unbind_button.show ();
}
- get_vbox()->set_border_width (12);
-
view.show ();
scroller.show ();
@@ -137,13 +133,13 @@ KeyEditor::on_show ()
{
populate ();
view.get_selection()->unselect_all ();
- ArdourDialog::on_show ();
+ ArdourWindow::on_show ();
}
void
KeyEditor::on_unmap ()
{
- ArdourDialog::on_unmap ();
+ ArdourWindow::on_unmap ();
}
void