using namespace ArdourCanvas;
using Gtkmm2ext::Keyboard;
+#define TOP_LEVEL_WIDGET controls_ebox
+
const double trim_handle_size = 6.0; /* pixels */
uint32_t TimeAxisView::button_height = 0;
uint32_t TimeAxisView::extra_height = 0;
top_hbox.pack_start (controls_vbox, true, true);
top_hbox.show ();
- controls_ebox.add (top_hbox);
+ controls_ebox.add (time_axis_hbox);
controls_ebox.add_events (Gdk::BUTTON_PRESS_MASK|
Gdk::BUTTON_RELEASE_MASK|
Gdk::POINTER_MOTION_MASK|
controls_ebox.show ();
time_axis_frame.set_shadow_type (Gtk::SHADOW_NONE);
- time_axis_frame.add(controls_ebox);
+ time_axis_frame.add(top_hbox);
time_axis_frame.show();
HSeparator* separator = manage (new HSeparator());
_canvas_separator->hide ();
if (control_parent) {
- control_parent->remove (time_axis_hbox);
+ control_parent->remove (TOP_LEVEL_WIDGET);
control_parent = 0;
}
TimeAxisView::show_at (double y, int& nth, VBox *parent)
{
if (control_parent) {
- control_parent->reorder_child (time_axis_hbox, nth);
+ control_parent->reorder_child (TOP_LEVEL_WIDGET, nth);
} else {
control_parent = parent;
- parent->pack_start (time_axis_hbox, false, false);
- parent->reorder_child (time_axis_hbox, nth);
+ parent->pack_start (TOP_LEVEL_WIDGET, false, false);
+ parent->reorder_child (TOP_LEVEL_WIDGET, nth);
}
_order = nth;
h = preset_height (HeightSmall);
}
- time_axis_hbox.property_height_request () = h;
+ TOP_LEVEL_WIDGET.property_height_request () = h;
height = h;
char buf[32];