summaryrefslogtreecommitdiff
path: root/gtk2_ardour/region_layering_order_editor.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-19 00:56:35 +0000
committerDavid Robillard <d@drobilla.net>2011-11-19 00:56:35 +0000
commit05283a63398fd7a563480a76802e6b2c2ad2e404 (patch)
treea0906614a0fc132fca8d5c910fdc97f5e694585b /gtk2_ardour/region_layering_order_editor.cc
parenta9fb657a47470c5cb439bca5745d4fec8d16b322 (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/region_layering_order_editor.cc')
-rw-r--r--gtk2_ardour/region_layering_order_editor.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/gtk2_ardour/region_layering_order_editor.cc b/gtk2_ardour/region_layering_order_editor.cc
index d2e0db5e11..c8690a5351 100644
--- a/gtk2_ardour/region_layering_order_editor.cc
+++ b/gtk2_ardour/region_layering_order_editor.cc
@@ -15,7 +15,7 @@ using namespace Gtk;
using namespace ARDOUR;
RegionLayeringOrderEditor::RegionLayeringOrderEditor (PublicEditor& pe)
- : ArdourDialog (pe, _("RegionLayeringOrderEditor"), false, false)
+ : ArdourWindow (pe, _("RegionLayeringOrderEditor"))
, playlist ()
, position ()
, in_row_change (false)
@@ -65,9 +65,11 @@ RegionLayeringOrderEditor::RegionLayeringOrderEditor (PublicEditor& pe)
info_table->attach (clock_label, 0, 1, 1, 2, FILL, FILL);
info_table->attach (clock, 1, 2, 1, 2, FILL, FILL);
- get_vbox()->set_spacing (12);
- get_vbox()->pack_start (*info_table, false, false);
- get_vbox()->pack_start (*scroller_table, true, true);
+ Gtk::VBox* vbox = Gtk::manage (new Gtk::VBox ());
+ vbox->set_spacing (12);
+ vbox->pack_start (*info_table, false, false);
+ vbox->pack_start (*scroller_table, true, true);
+ add (*vbox);
info_table->set_name ("RegionLayeringOrderTable");
scroller_table->set_name ("RegionLayeringOrderTable");
@@ -185,7 +187,7 @@ RegionLayeringOrderEditor::on_key_press_event (GdkEventKey* ev)
*/
if (ev->keyval == GDK_Return) {
- handled = ArdourDialog::on_key_press_event (ev);
+ handled = ArdourWindow::on_key_press_event (ev);
}
if (!handled) {
@@ -193,7 +195,7 @@ RegionLayeringOrderEditor::on_key_press_event (GdkEventKey* ev)
}
if (!handled) {
- handled = ArdourDialog::on_key_press_event (ev);
+ handled = ArdourWindow::on_key_press_event (ev);
}
return handled;