diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-01-24 16:19:38 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-01-24 16:19:38 +0000 |
commit | 035074d1b732ce2f6533b8707882f3310ae6e585 (patch) | |
tree | e353ee6713bb8a1525dfb9db412b3a2e084fb0e2 /libs/gtkmm2ext/actions.cc | |
parent | 175036ea4eb5568338abf085c009dffed9ba0527 (diff) |
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
Diffstat (limited to 'libs/gtkmm2ext/actions.cc')
-rw-r--r-- | libs/gtkmm2ext/actions.cc | 10 |
1 files changed, 10 insertions, 0 deletions
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<Gtk::Action> act = ActionManager::get_action (group, action); + if (act) { + act->activate (); + } +} + |