From 1557e41f5ed2f12b8d059d18ec9decd3d8e99c39 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Mon, 30 Sep 2024 14:35:06 -0500 Subject: [PATCH] Transfer from ardour_ui (transport_table) --- gtk2_ardour/application_bar.cc | 16 +++++++++++++++- gtk2_ardour/application_bar.h | 1 + 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/application_bar.cc b/gtk2_ardour/application_bar.cc index 8f81a6f709..123f9e5a0c 100644 --- a/gtk2_ardour/application_bar.cc +++ b/gtk2_ardour/application_bar.cc @@ -126,7 +126,21 @@ ApplicationBar::on_parent_changed (Gtk::Widget*) _transport_ctrl.setup (ARDOUR_UI::instance ()); _transport_ctrl.map_actions (); - pack_start(_transport_ctrl, false, false); + int vpadding = 1; + int hpadding = 2; + int col = 0; +#define TCOL col, col + 1 + + _table.attach (_transport_ctrl, TCOL, 0, 1 , SHRINK, SHRINK, 0, 0); +// _table.attach (*ssbox, TCOL, 1, 2 , FILL, SHRINK, 0, 0); + ++col; + + + + _table.set_spacings (0); + _table.set_row_spacings (4); + _table.set_border_width (1); + pack_start(_table, false, false); } void diff --git a/gtk2_ardour/application_bar.h b/gtk2_ardour/application_bar.h index 63fd261add..2c8a976dcb 100644 --- a/gtk2_ardour/application_bar.h +++ b/gtk2_ardour/application_bar.h @@ -63,5 +63,6 @@ private: bool _have_layout; BasicUI* _basic_ui; + Gtk::Table _table; TransportControlUI _transport_ctrl; };