diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-09 09:09:21 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-09 09:09:21 -0400 |
commit | b530e8649e8edcea7373275ebcb871042160d8e3 (patch) | |
tree | 06b6a469216ff47b914f2d4c0295d69876d264ab /gtk2_ardour/editor_canvas.cc | |
parent | 0c5dae881c41dec399c7bfeb4c1c25b209122c5c (diff) |
rename Editor::_canvas_bottom_rect as Editor::_canvas_drop_zone; increase its size; remove debug message
Diffstat (limited to 'gtk2_ardour/editor_canvas.cc')
-rw-r--r-- | gtk2_ardour/editor_canvas.cc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc index 9371fbbd46..58940837ef 100644 --- a/gtk2_ardour/editor_canvas.cc +++ b/gtk2_ardour/editor_canvas.cc @@ -226,11 +226,11 @@ Editor::initialize_canvas () } - _canvas_bottom_rect = new ArdourCanvas::Rectangle (hv_scroll_group, ArdourCanvas::Rect (0.0, 0.0, ArdourCanvas::COORD_MAX, 20)); + _canvas_drop_zone = new ArdourCanvas::Rectangle (hv_scroll_group, ArdourCanvas::Rect (0.0, 0.0, ArdourCanvas::COORD_MAX, 0.0)); /* this thing is transparent */ - _canvas_bottom_rect->set_fill (false); - _canvas_bottom_rect->set_outline (false); - _canvas_bottom_rect->Event.connect (sigc::mem_fun (*this, &Editor::canvas_bottom_rect_event)); + _canvas_drop_zone->set_fill (false); + _canvas_drop_zone->set_outline (false); + _canvas_drop_zone->Event.connect (sigc::mem_fun (*this, &Editor::canvas_drop_zone_event)); /* these signals will initially be delivered to the canvas itself, but if they end up remaining unhandled, they are passed to Editor-level handlers. @@ -286,6 +286,8 @@ Editor::track_canvas_viewport_size_allocated () _visible_canvas_width = _canvas_viewport_allocation.get_width (); _visible_canvas_height = _canvas_viewport_allocation.get_height (); + _canvas_drop_zone->set_y1 (_canvas_drop_zone->y0() + _visible_canvas_height); + // SHOWTRACKS if (height_changed) { @@ -340,13 +342,13 @@ Editor::reset_controls_layout_height (int32_t h) * (the drag-n-drop zone) is, in fact, at the bottom. */ - _canvas_bottom_rect->set_position (ArdourCanvas::Duple (0, h)); + _canvas_drop_zone->set_position (ArdourCanvas::Duple (0, h)); /* track controls layout must span the full height of "h" (all tracks) * plus the bottom rect. */ - h += _canvas_bottom_rect->height (); + h += _canvas_drop_zone->height (); /* set the height of the scrollable area (i.e. the sum of all contained widgets) * for the controls layout. The size request is set elsewhere. |