summaryrefslogtreecommitdiff
path: root/gtk2_ardour/streamview.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-09-04 18:08:45 +0200
committerRobin Gareus <robin@gareus.org>2014-09-04 18:08:45 +0200
commit795451a697c82e8537eb710b659375777aa4c831 (patch)
tree015a4a4d9eb57af0b2da4f1b1339795053379014 /gtk2_ardour/streamview.cc
parentcb05e3a21d7c80f4507b740ef1cef2723bd5a4a2 (diff)
Trick 17: share separator + border:
This effectively adds a line after the last track.
Diffstat (limited to 'gtk2_ardour/streamview.cc')
-rw-r--r--gtk2_ardour/streamview.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/streamview.cc b/gtk2_ardour/streamview.cc
index b133179390..5d2b58a5cd 100644
--- a/gtk2_ardour/streamview.cc
+++ b/gtk2_ardour/streamview.cc
@@ -71,8 +71,8 @@ StreamView::StreamView (RouteTimeAxisView& tv, ArdourCanvas::Container* canvas_g
canvas_rect = new ArdourCanvas::Rectangle (_canvas_group);
CANVAS_DEBUG_NAME (canvas_rect, string_compose ("SV canvas rectangle %1", _trackview.name()));
- canvas_rect->set (ArdourCanvas::Rect (0, 0, ArdourCanvas::COORD_MAX, tv.current_height ()));
- canvas_rect->set_outline_what (ArdourCanvas::Rectangle::What (0));
+ canvas_rect->set (ArdourCanvas::Rect (0, 0, ArdourCanvas::COORD_MAX, tv.current_height () -1));
+ canvas_rect->set_outline_what (ArdourCanvas::Rectangle::BOTTOM); // bottom separator
canvas_rect->set_outline_color (RGBA_TO_UINT (0, 0, 0, 255));
canvas_rect->set_fill (true);
canvas_rect->Event.connect (sigc::bind (sigc::mem_fun (_trackview.editor(), &PublicEditor::canvas_stream_view_event), canvas_rect, &_trackview));
@@ -119,12 +119,12 @@ StreamView::set_height (double h)
return -1;
}
- if (canvas_rect->y1() == h) {
+ if (canvas_rect->y1() == h /* -1 */) {
return 0;
}
height = h;
- canvas_rect->set_y1 (height);
+ canvas_rect->set_y1 (height /* -1 */); // share the separator with outline
update_contents_height ();
return 0;