diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-07-08 16:27:38 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-07-08 16:27:38 +0000 |
commit | 73bb86efacb7eebaa671226917c95481a624c6d3 (patch) | |
tree | 16499f169d4f12331564d8cbeeb0e37ccc293924 /gtk2_ardour | |
parent | d0062541da23365bbf5121fc9c8a146929c14d21 (diff) |
ensure that OSC calls to access_action occur in the correct thread
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3524 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/editor.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index b86469bd2d..08ccd45ab7 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -1036,13 +1036,17 @@ Editor::access_action (std::string action_group, std::string action_item) return; } + ENSURE_GUI_THREAD (bind (mem_fun (*this, &Editor::access_action), action_group, action_item)); + cout<< "OSC: Recieved: "<< action_item << endl; RefPtr<Action> act; act = ActionManager::get_action( action_group.c_str(), action_item.c_str() ); - if( act ) + if (act) { act->activate(); + } + } |