From 911fdb576e15283897cb7648d07f4ba14ec8f78e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 24 Nov 2009 00:06:12 +0000 Subject: [PATCH] Bodge around visual glitch where the ranges & markers list would overlap the editor's RHS tabs. git-svn-id: svn://localhost/ardour2/branches/3.0@6162 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/location_ui.cc | 10 ++++++++-- gtk2_ardour/location_ui.h | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/location_ui.cc b/gtk2_ardour/location_ui.cc index 94d7fd0f1c..d5448e7f71 100644 --- a/gtk2_ardour/location_ui.cc +++ b/gtk2_ardour/location_ui.cc @@ -595,9 +595,15 @@ LocationUI::LocationUI () add_location_button.set_image (*Gtk::manage (new Gtk::Image (Gtk::Stock::ADD, Gtk::ICON_SIZE_BUTTON))); add_range_button.set_image (*Gtk::manage (new Gtk::Image (Gtk::Stock::ADD, Gtk::ICON_SIZE_BUTTON))); + + loop_punch_box.pack_start (loop_edit_row, false, false); + loop_punch_box.pack_start (punch_edit_row, false, false); - location_vpacker.pack_start (loop_edit_row, false, false); - location_vpacker.pack_start (punch_edit_row, false, false); + loop_punch_scroller.add (loop_punch_box); + loop_punch_scroller.set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_NEVER); + loop_punch_scroller.set_shadow_type (Gtk::SHADOW_NONE); + + location_vpacker.pack_start (loop_punch_scroller, false, false); location_rows.set_name("LocationLocRows"); location_rows_scroller.add (location_rows); diff --git a/gtk2_ardour/location_ui.h b/gtk2_ardour/location_ui.h index a17724f5ba..56401f6139 100644 --- a/gtk2_ardour/location_ui.h +++ b/gtk2_ardour/location_ui.h @@ -163,6 +163,8 @@ class LocationUI : public Gtk::HBox LocationEditRow loop_edit_row; LocationEditRow punch_edit_row; + Gtk::VBox loop_punch_box; + Gtk::ScrolledWindow loop_punch_scroller; Gtk::VPaned loc_range_panes;