diff options
author | Carl Hetherington <carl@carlh.net> | 2009-06-11 01:05:01 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-06-11 01:05:01 +0000 |
commit | c99ae648f05073f3b1d607cb15b826d2525a38a7 (patch) | |
tree | b9cfa8c2bbaefdd699897a4bc2886e1f25a842ed /gtk2_ardour/editor_canvas.cc | |
parent | 51ef4343827883e9721088f051981c9da2aa6acd (diff) |
Add a widget giving an overview of the editor, as (what I think is being) suggested in #2714. Many caveats: most notably that it looks quite ugly and you can't (yet) turn it off.
git-svn-id: svn://localhost/ardour2/branches/3.0@5162 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_canvas.cc')
-rw-r--r-- | gtk2_ardour/editor_canvas.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc index 146f756225..573b3af16a 100644 --- a/gtk2_ardour/editor_canvas.cc +++ b/gtk2_ardour/editor_canvas.cc @@ -362,6 +362,7 @@ Editor::track_canvas_size_allocated () reset_hscrollbar_stepping (); update_fixed_rulers(); redisplay_tempo (false); + _summary->set_bounds_dirty (); Resized (); /* EMIT_SIGNAL */ @@ -773,8 +774,6 @@ Editor::tie_vertical_scrolling () void Editor::scroll_canvas_horizontally () { - nframes64_t time_origin = (nframes64_t) floor (horizontal_adjustment.get_value() * frames_per_unit); - /* horizontal scrolling only */ double x1, y1, x2, y2, x_delta; _master_group->get_bounds (x1, y1, x2, y2); @@ -791,6 +790,8 @@ Editor::scroll_canvas_horizontally () update_fixed_rulers (); redisplay_tempo (true); + _summary->set_bounds_dirty (); + #ifndef GTKOSX if (!autoscroll_active) { /* force rulers and canvas to move in lock step */ |