summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mouse.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-11-06 22:43:47 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-11-06 22:43:47 +0000
commit8bb5605dfc48a9578164e820fb866f0e7881d899 (patch)
tree29171e531c26a0a79513f0b6f06d95d9ce05c494 /gtk2_ardour/editor_mouse.cc
parentc3e7746e367b5b461f0577b548c9e29854bdde06 (diff)
deep, somewhat subtle changes for transport control. Everything should use Session::request_stop(), which nows takes an additional argument indicating whether or not to clear play range/loop state. UI threads will generally do so, other things, like slave sync objects, generally will not. also fixed stupid delay on exit, caused by unconditional usleep (2.5 seconds) ...
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6027 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_mouse.cc')
-rw-r--r--gtk2_ardour/editor_mouse.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc
index 490112d430..3fd7e09afc 100644
--- a/gtk2_ardour/editor_mouse.cc
+++ b/gtk2_ardour/editor_mouse.cc
@@ -1191,7 +1191,7 @@ Editor::button_release_handler (ArdourCanvas::Item* item, GdkEvent* event, ItemT
}
} else {
/* make sure we stop */
- session->request_transport_speed (0.0);
+ session->request_stop ();
}
break;
@@ -2247,7 +2247,7 @@ Editor::start_cursor_grab (ArdourCanvas::Item* item, GdkEvent* event)
_dragging_playhead = true;
if (session && drag_info.was_rolling) {
- session->request_stop ();
+ session->request_stop (false, true);
}
if (session && session->is_auditioning()) {