Force gtk ruler update slightly earlier.

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4149 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Nick Mainsbridge 2008-11-13 12:17:22 +00:00
parent 45b4721be3
commit 1c54982887

View file

@ -839,17 +839,6 @@ Editor::scroll_canvas_horizontally ()
canvas_scroll_to (time_origin);
}
/* horizontal scrolling only */
double x1, x2, y1, y2, x_delta;
_master_group->get_bounds(x1, y1, x2, y2);
x_delta = x1 + horizontal_adjustment.get_value();
_master_group->move (-x_delta, 0);
timebar_group->move (-x_delta, 0);
time_line_group->move (-x_delta, 0);
cursor_group->move (-x_delta, 0);
update_fixed_rulers ();
redisplay_tempo (true);
@ -861,7 +850,16 @@ Editor::scroll_canvas_horizontally ()
}
}
#endif
/* horizontal scrolling only */
double x1, x2, y1, y2, x_delta;
_master_group->get_bounds(x1, y1, x2, y2);
x_delta = x1 + horizontal_adjustment.get_value();
_master_group->move (-x_delta, 0);
timebar_group->move (-x_delta, 0);
time_line_group->move (-x_delta, 0);
cursor_group->move (-x_delta, 0);
}
void