diff options
-rw-r--r-- | gtk2_ardour/time_axis_view.cc | 19 | ||||
-rw-r--r-- | gtk2_ardour/time_axis_view.h | 1 |
2 files changed, 16 insertions, 4 deletions
diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc index a76f2e07ef..f16d650386 100644 --- a/gtk2_ardour/time_axis_view.cc +++ b/gtk2_ardour/time_axis_view.cc @@ -178,6 +178,15 @@ TimeAxisView::TimeAxisView (ARDOUR::Session* sess, PublicEditor& ed, TimeAxisVie time_axis_frame.add(controls_ebox); time_axis_frame.show(); + HSeparator* separator = manage (new HSeparator()); + separator->set_name("TrackSeparator"); + separator->set_size_request(-1, 1); + separator->show(); + + time_axis_vbox.pack_start (time_axis_frame, true, true); + time_axis_vbox.pack_end (*separator, false, false); + time_axis_vbox.show(); + ColorsChanged.connect (sigc::mem_fun (*this, &TimeAxisView::color_handler)); GhostRegion::CatchDeletion.connect (*this, invalidator (*this), boost::bind (&TimeAxisView::erase_ghost, this, _1), gui_context()); @@ -258,11 +267,11 @@ guint32 TimeAxisView::show_at (double y, int& nth, VBox *parent) { if (control_parent) { - control_parent->reorder_child (time_axis_frame, nth); + control_parent->reorder_child (time_axis_vbox, nth); } else { control_parent = parent; - parent->pack_start (time_axis_frame, false, false); - parent->reorder_child (time_axis_frame, nth); + parent->pack_start (time_axis_vbox, false, false); + parent->reorder_child (time_axis_vbox, nth); } _order = nth; @@ -520,7 +529,7 @@ TimeAxisView::set_height (uint32_t h) h = preset_height (HeightSmall); } - time_axis_frame.property_height_request () = h; + time_axis_vbox.property_height_request () = h; height = h; char buf[32]; @@ -767,11 +776,13 @@ TimeAxisView::set_selected (bool yn) time_axis_frame.set_name ("MixerStripSelectedFrame"); controls_ebox.set_name (controls_base_selected_name); controls_vbox.set_name (controls_base_selected_name); + time_axis_vbox.set_name (controls_base_selected_name); } else { time_axis_frame.set_shadow_type (Gtk::SHADOW_OUT); time_axis_frame.set_name (controls_base_unselected_name); controls_ebox.set_name (controls_base_unselected_name); controls_vbox.set_name (controls_base_unselected_name); + time_axis_vbox.set_name (controls_base_unselected_name); hide_selection (); diff --git a/gtk2_ardour/time_axis_view.h b/gtk2_ardour/time_axis_view.h index d2bccd4cc3..90c05761c0 100644 --- a/gtk2_ardour/time_axis_view.h +++ b/gtk2_ardour/time_axis_view.h @@ -206,6 +206,7 @@ class TimeAxisView : public virtual AxisView Glib::RefPtr<Gtk::SizeGroup> controls_button_size_group; Gtk::EventBox controls_ebox; Gtk::VBox controls_vbox; + Gtk::VBox time_axis_vbox; Gtk::Frame time_axis_frame; Gtk::HBox name_hbox; Gtk::HBox top_hbox; |