summaryrefslogtreecommitdiff
path: root/gtk2_ardour/actions.cc
diff options
context:
space:
mode:
authorTaybin Rutkin <taybin@taybin.com>2005-12-02 22:12:56 +0000
committerTaybin Rutkin <taybin@taybin.com>2005-12-02 22:12:56 +0000
commitf2c09c7a7a195bcd4cf6e095b3c380e803b5a058 (patch)
tree1a451033a99f8103ea0e03c981a70582ebc39cd8 /gtk2_ardour/actions.cc
parent9388c84f06e35950306f33e8cc352e32309258dd (diff)
Dialogbox checkmarks turn off when dialogs are closed.
git-svn-id: svn://localhost/trunk/ardour2@164 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/actions.cc')
-rw-r--r--gtk2_ardour/actions.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk2_ardour/actions.cc b/gtk2_ardour/actions.cc
index 19af1dfd07..0dca875e3f 100644
--- a/gtk2_ardour/actions.cc
+++ b/gtk2_ardour/actions.cc
@@ -202,3 +202,16 @@ ActionManager::set_sensitive (vector<RefPtr<Action> >& actions, bool state)
(*i)->set_sensitive (state);
}
}
+
+void
+ActionManager::uncheck_toggleaction (const std::string& actionname)
+{
+ RefPtr<Action> act = get_action (actionname);
+ if (act) {
+ RefPtr<ToggleAction> tact = RefPtr<ToggleAction>::cast_dynamic(act);
+ tact->set_active (false);
+ } else {
+ error << "Invalid action name: " << actionname << endmsg;
+ }
+}
+