From aed4c9815a1ac66ddce8298481e71f238386833f Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 28 Nov 2024 13:41:40 +0100 Subject: [PATCH] Only shrink top/bottom of selection frame --- gtk2_ardour/time_axis_view_item.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/time_axis_view_item.cc b/gtk2_ardour/time_axis_view_item.cc index d8ed73e61f..402107c4b6 100644 --- a/gtk2_ardour/time_axis_view_item.cc +++ b/gtk2_ardour/time_axis_view_item.cc @@ -500,7 +500,7 @@ TimeAxisViewItem::set_selected(bool yn) selection_frame->set_outline_color (UIConfiguration::instance().color ("selected time axis frame")); selection_frame->set_ignore_events (true); } - selection_frame->set (frame->get().shrink (1.0)); + selection_frame->set (frame->get().shrink (1.0, 0.0, 1.0, 0.0)); selection_frame->show (); } else { if (selection_frame) { @@ -567,7 +567,7 @@ TimeAxisViewItem::set_height (double height) } if (selection_frame) { - selection_frame->set (frame->get().shrink (1.0)); + selection_frame->set (frame->get().shrink (1.0, 0.0, 1.0, 0.0)); } } } @@ -834,7 +834,7 @@ TimeAxisViewItem::reset_width_dependent_items (double pixel_width) frame->set_x1 (pixel_width); if (selection_frame) { - selection_frame->set (frame->get().shrink (1.0)); + selection_frame->set (frame->get().shrink (1.0, 0.0, 1.0, 0.0)); } }