From d953ca732e7304808e269682002b22113b31ac64 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 5 Dec 2024 20:31:15 +0100 Subject: [PATCH] Tweak Ardour Attachment buttons --- libs/widgets/tabbable.cc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/libs/widgets/tabbable.cc b/libs/widgets/tabbable.cc index ac2e6a6696..05e66ccd8f 100644 --- a/libs/widgets/tabbable.cc +++ b/libs/widgets/tabbable.cc @@ -88,15 +88,18 @@ Tabbable::default_layout () content_attachments.add (content_attachment_hbox); #else Gtk::Table* atta_table = manage(new Gtk::Table); - atta_table->set_spacings (3); - atta_table->attach (left_attachment_button, 0, 1, 0, 1, Gtk::SHRINK, Gtk::EXPAND|FILL); - atta_table->attach (right_attachment_button, 1, 2, 0, 1, Gtk::SHRINK, Gtk::EXPAND|FILL); - atta_table->attach (bottom_attachment_button, 0, 2, 1, 2, Gtk::FILL, Gtk::EXPAND|FILL); + atta_table->set_homogeneous (); + atta_table->set_spacings (0); + atta_table->set_row_spacings (3); + atta_table->set_border_width (0); + atta_table->attach (left_attachment_button, 0, 1, 0, 1, Gtk::SHRINK, Gtk::EXPAND|FILL, 1, 2); + atta_table->attach (right_attachment_button, 1, 2, 0, 1, Gtk::SHRINK, Gtk::EXPAND|FILL, 1, 2); + atta_table->attach (bottom_attachment_button, 0, 2, 1, 2, Gtk::FILL, Gtk::EXPAND|FILL, 1, 2); left_attachment_button.set_tweaks (ArdourButton::ExpandtoSquare); right_attachment_button.set_tweaks (ArdourButton::ExpandtoSquare); - content_attachment_hbox.set_border_width(3); + content_attachment_hbox.set_border_width(1); content_attachment_hbox.pack_end (*atta_table, true, true); content_attachments.add (content_attachment_hbox); #endif