From b6b9d9231b2f3c7f745b9a57fb063104030a20c9 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 24 Jan 2022 19:28:58 +0100 Subject: [PATCH] Trigger page, slot property layout hacks The layout should eventually really be simplified. Use a HBox, remove nested tables, get rid of tables with only one Frame inside. etc. --- gtk2_ardour/audio_trigger_properties_box.cc | 2 +- gtk2_ardour/trigger_page.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/audio_trigger_properties_box.cc b/gtk2_ardour/audio_trigger_properties_box.cc index 83fdd4687b..5b56f4ecd6 100644 --- a/gtk2_ardour/audio_trigger_properties_box.cc +++ b/gtk2_ardour/audio_trigger_properties_box.cc @@ -128,7 +128,7 @@ AudioTriggerPropertiesBox::AudioTriggerPropertiesBox () _table.set_spacings (4); _table.set_border_width (2); - attach (*eTempoBox, 0,1, 0,1, Gtk::FILL, Gtk::SHRINK); + attach (*eTempoBox, 0,1, 0,1, Gtk::FILL, Gtk::EXPAND | Gtk::FILL); #if 0 attach (_table, 0,1, 1,2, Gtk::FILL, Gtk::SHRINK); #endif diff --git a/gtk2_ardour/trigger_page.cc b/gtk2_ardour/trigger_page.cc index b068d9359f..6409c43211 100644 --- a/gtk2_ardour/trigger_page.cc +++ b/gtk2_ardour/trigger_page.cc @@ -142,10 +142,10 @@ TriggerPage::TriggerPage () table->set_border_width (8); int col = 0; - table->attach (_slot_prop_box, col, col + 1, 0, 1, Gtk::FILL, Gtk::SHRINK); + table->attach (_slot_prop_box, col, col + 1, 0, 1, Gtk::FILL, Gtk::SHRINK | Gtk::FILL); col = 1; - table->attach (_audio_trig_box, col, col + 1, 0, 1, Gtk::FILL, Gtk::SHRINK); + table->attach (_audio_trig_box, col, col + 1, 0, 1, Gtk::FILL, Gtk::SHRINK | Gtk::FILL); ++col; #ifdef MIDI_PROPERTIES_BOX_IMPLEMENTED