Force gtk rulers to update in lock step with canvas.

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4001 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Nick Mainsbridge 2008-10-23 17:31:03 +00:00
parent 12ffa28390
commit 8330f2828e
2 changed files with 7 additions and 2 deletions

View file

@ -4331,7 +4331,7 @@ Editor::set_frames_per_unit (double fpu)
void
Editor::post_zoom ()
{
nframes64_t cef=0;
nframes64_t cef = 0;
/*
// convert fpu to frame count

View file

@ -800,7 +800,12 @@ Editor::scroll_canvas_horizontally ()
cursor_group->move (-x_delta, 0);
update_fixed_rulers ();
redisplay_tempo (true);
if (!autoscroll_active) {
/* force rulers and canvas to move in lock step */
while (gtk_events_pending ()) {
gtk_main_iteration ();
}
}
}
void