diff options
author | David Robillard <d@drobilla.net> | 2011-11-19 00:56:35 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-19 00:56:35 +0000 |
commit | 05283a63398fd7a563480a76802e6b2c2ad2e404 (patch) | |
tree | a0906614a0fc132fca8d5c910fdc97f5e694585b /gtk2_ardour/keyeditor.cc | |
parent | a9fb657a47470c5cb439bca5745d4fec8d16b322 (diff) |
Only use ArdourDialog (and thus Gtk::Dialog) for actual dialogs.
Fixes #4364.
I havn't fully tested every single dialog and window (heck, I don't even know
how to get at half of them), and there may be some packing niggles, but this is
the bulk of the work. The Gnome 3 kiddies can close their dialogs now, anyway
:)
git-svn-id: svn://localhost/ardour2/branches/3.0@10699 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/keyeditor.cc')
-rw-r--r-- | gtk2_ardour/keyeditor.cc | 14 |
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 |