From 035074d1b732ce2f6533b8707882f3310ae6e585 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 24 Jan 2012 16:19:38 +0000 Subject: provide ActionManager::do_action() as a way to trigger any action item as if the user has asked for it via some UI proxy git-svn-id: svn://localhost/ardour2/branches/3.0@11332 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/gtkmm2ext/actions.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libs/gtkmm2ext/actions.cc') diff --git a/libs/gtkmm2ext/actions.cc b/libs/gtkmm2ext/actions.cc index 7237497d86..c9aae4568b 100644 --- a/libs/gtkmm2ext/actions.cc +++ b/libs/gtkmm2ext/actions.cc @@ -343,3 +343,13 @@ ActionManager::get_key_representation (const string& accel_path, AccelKey& key) return unbound_string; } + +void +ActionManager::do_action (const char* group, const char*action) +{ + Glib::RefPtr act = ActionManager::get_action (group, action); + if (act) { + act->activate (); + } +} + -- cgit v1.2.3