mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
replace ::cast_dynamic() with relevant ActionManager::get_*_action() calls
This commit is contained in:
parent
961870142d
commit
758d0ca263
1 changed files with 3 additions and 16 deletions
|
|
@ -617,27 +617,14 @@ UI::process_error_message (Transmitter::Channel chn, const char *str)
|
||||||
void
|
void
|
||||||
UI::show_errors ()
|
UI::show_errors ()
|
||||||
{
|
{
|
||||||
Glib::RefPtr<Action> act = ActionManager::get_action (X_("Editor"), X_("toggle-log-window"));
|
Glib::RefPtr<ToggleAction> tact = ActionManager::get_toggle_action (X_("Editor"), X_("toggle-log-window"));
|
||||||
if (!act) {
|
tact->set_active ();
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act);
|
|
||||||
if (tact) {
|
|
||||||
tact->set_active ();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
UI::toggle_errors ()
|
UI::toggle_errors ()
|
||||||
{
|
{
|
||||||
Glib::RefPtr<Action> act = ActionManager::get_action (X_("Editor"), X_("toggle-log-window"));
|
Glib::RefPtr<ToggleAction> tact = ActionManager::get_toggle_action (X_("Editor"), X_("toggle-log-window"));
|
||||||
if (!act) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act);
|
|
||||||
|
|
||||||
if (tact->get_active()) {
|
if (tact->get_active()) {
|
||||||
errors->set_position (WIN_POS_MOUSE);
|
errors->set_position (WIN_POS_MOUSE);
|
||||||
errors->show ();
|
errors->show ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue