summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_ops.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-04-06 16:51:27 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-04-06 16:51:27 +0000
commite9f9ca5278c6bcafd6a22ad273185c31664c32a5 (patch)
tree6000ae75223bfa5b2f476337558e3a20923641bd /gtk2_ardour/editor_ops.cc
parent06764a3b0704e06ec8de42533938b1b50ab1ad4d (diff)
3 different data wheel modes for tranzport, plus lock on writes, and more
git-svn-id: svn://localhost/trunk/ardour2@448 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r--gtk2_ardour/editor_ops.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc
index 03ea5ac456..e5e16381ab 100644
--- a/gtk2_ardour/editor_ops.cc
+++ b/gtk2_ardour/editor_ops.cc
@@ -60,6 +60,7 @@
#include "sfdb_ui.h"
#include "editing.h"
#include "gtk-custom-hruler.h"
+#include "gui_thread.h"
#include "i18n.h"
@@ -1021,6 +1022,8 @@ Editor::scroll_tracks_up_line ()
void
Editor::temporal_zoom_step (bool coarser)
{
+ ENSURE_GUI_THREAD (bind (mem_fun (*this, &Editor::temporal_zoom_step), coarser));
+
double nfpu;
nfpu = frames_per_unit;
@@ -1122,6 +1125,8 @@ Editor::temporal_zoom_selection ()
void
Editor::temporal_zoom_session ()
{
+ ENSURE_GUI_THREAD (mem_fun (*this, &Editor::temporal_zoom_session));
+
if (session) {
temporal_zoom_by_frame (session->current_start_frame(), session->current_end_frame(), "zoom to session");
}