}
-void MTimeBar::stop_playback()
+void MTimeBar::stop_transport()
{
- gui->unlock_window();
- gui->mbuttons->transport->handle_transport(STOP, 1, 0, 0);
- gui->lock_window();
+ gui->stop_transport("MTimeBar::stop_transport");
}
#define TEXT_MARGIN 4
void MTimeBar::select_label(double position)
{
- EDL *edl = mwindow->edl;
-
- gui->unlock_window();
- gui->mbuttons->transport->handle_transport(STOP, 1, 0, 0);
- gui->lock_window();
+ stop_transport();
- position = mwindow->edl->align_to_frame(position, 1);
+ EDL *edl = mwindow->edl;
+ position = edl->align_to_frame(position, 1);
if(shift_down())
{