mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
NO-OP: whitespace and some guaranteed assertion removal
This commit is contained in:
parent
41827a546a
commit
474d68c051
2 changed files with 11 additions and 10 deletions
|
|
@ -2636,24 +2636,25 @@ Mixer_UI::set_axis_targets_for_operation ()
|
||||||
void
|
void
|
||||||
Mixer_UI::set_monitor_action_sensitivity (bool yn)
|
Mixer_UI::set_monitor_action_sensitivity (bool yn)
|
||||||
{
|
{
|
||||||
|
// TODO use ActionMap::find_toggle_action()->set_*();
|
||||||
Glib::RefPtr<Action> act;
|
Glib::RefPtr<Action> act;
|
||||||
Glib::RefPtr<ToggleAction> tact;
|
Glib::RefPtr<ToggleAction> tact;
|
||||||
|
|
||||||
act = ActionManager::get_action (X_("Monitor"), "UseMonitorSection");
|
act = ActionManager::get_action (X_("Monitor"), "UseMonitorSection");
|
||||||
assert (act); tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act);
|
tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act);
|
||||||
assert (tact); tact->set_active ( yn );
|
tact->set_active (yn);
|
||||||
|
|
||||||
act = ActionManager::get_action (X_("Monitor"), "monitor-cut-all");
|
act = ActionManager::get_action (X_("Monitor"), "monitor-cut-all");
|
||||||
assert (act); tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act);
|
tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act);
|
||||||
assert (tact); tact->set_sensitive ( yn );
|
tact->set_sensitive (yn);
|
||||||
|
|
||||||
act = ActionManager::get_action (X_("Monitor"), "monitor-dim-all");
|
act = ActionManager::get_action (X_("Monitor"), "monitor-dim-all");
|
||||||
assert (act); tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act);
|
tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act);
|
||||||
assert (tact); tact->set_sensitive ( yn );
|
tact->set_sensitive (yn);
|
||||||
|
|
||||||
act = ActionManager::get_action (X_("Monitor"), "monitor-mono");
|
act = ActionManager::get_action (X_("Monitor"), "monitor-mono");
|
||||||
assert (act); tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act);
|
tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act);
|
||||||
assert (tact); tact->set_sensitive ( yn );
|
tact->set_sensitive (yn);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
|
|
@ -232,7 +232,7 @@ CheckOption::action_toggled ()
|
||||||
{
|
{
|
||||||
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (_action);
|
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (_action);
|
||||||
if (tact) {
|
if (tact) {
|
||||||
_button->set_active(tact->get_active());
|
_button->set_active (tact->get_active());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -247,7 +247,7 @@ CheckOption::toggled ()
|
||||||
{
|
{
|
||||||
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (_action);
|
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (_action);
|
||||||
|
|
||||||
tact->set_active( _button->get_active() );
|
tact->set_active (_button->get_active ());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue