summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_regions.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-02-28 23:54:42 +0100
committerRobin Gareus <robin@gareus.org>2019-02-28 23:54:42 +0100
commit82440265339b69983eda71167a563407bb35acb8 (patch)
tree6ad08e7a0d01605d193824af72766dfe03a4dab9 /gtk2_ardour/editor_regions.cc
parent00934aec0db8c9fbf0361cdbc4472ae909f1212d (diff)
Consolidate ToggleAction cast, use new API
Furthermore we can assume that all Actions are registered and Unregistered actions will ::abort() execution.
Diffstat (limited to 'gtk2_ardour/editor_regions.cc')
-rw-r--r--gtk2_ardour/editor_regions.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/gtk2_ardour/editor_regions.cc b/gtk2_ardour/editor_regions.cc
index 6526d4dec5..4e025225f6 100644
--- a/gtk2_ardour/editor_regions.cc
+++ b/gtk2_ardour/editor_regions.cc
@@ -1682,7 +1682,6 @@ RefPtr<Action>
EditorRegions::hide_action () const
{
return ActionManager::get_action (X_("RegionList"), X_("rlHide"));
-
}
RefPtr<Action>
@@ -1700,15 +1699,11 @@ EditorRegions::remove_unused_regions_action () const
RefPtr<ToggleAction>
EditorRegions::toggle_full_action () const
{
- Glib::RefPtr<Action> act = ActionManager::get_action (X_("RegionList"), X_("rlShowAll"));
- assert (act);
- return Glib::RefPtr<ToggleAction>::cast_dynamic (act);
+ return ActionManager::get_toggle_action (X_("RegionList"), X_("rlShowAll"));
}
RefPtr<ToggleAction>
EditorRegions::toggle_show_auto_regions_action () const
{
- Glib::RefPtr<Action> act = ActionManager::get_action (X_("RegionList"), X_("rlShowAuto"));
- assert (act);
- return Glib::RefPtr<ToggleAction>::cast_dynamic (act);
+ return ActionManager::get_toggle_action (X_("RegionList"), X_("rlShowAuto"));
}