diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-04 02:46:59 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-04 02:46:59 +0000 |
commit | cad92bfa4e0a6c14068e3b42f0b7c3baf18aee8a (patch) | |
tree | b00847a05289d30aa670d34b0e62b688959b5870 /gtk2_ardour/monitor_section.cc | |
parent | b81591ab16c6469462565391b7d3085d0d8820ca (diff) |
fix initial display of solo-model in monitor section
git-svn-id: svn://localhost/ardour2/branches/3.0@10433 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/monitor_section.cc')
-rw-r--r-- | gtk2_ardour/monitor_section.cc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gtk2_ardour/monitor_section.cc b/gtk2_ardour/monitor_section.cc index dcfdefd416..0926794175 100644 --- a/gtk2_ardour/monitor_section.cc +++ b/gtk2_ardour/monitor_section.cc @@ -93,12 +93,6 @@ MonitorSection::MonitorSection (Session* s) afl_button.set_name ("monitor section solo model"); pfl_button.set_name ("monitor section solo model"); -#if 0 - solo_model_group.add (solo_in_place_button); - solo_model_group.add (afl_button); - solo_model_group.add (afl_button); -#endif - solo_model_box.set_spacing (6); solo_model_box.pack_start (solo_in_place_button, true, false); solo_model_box.pack_start (afl_button, true, false); @@ -846,10 +840,19 @@ MonitorSection::update_solo_model () act = ActionManager::get_action (X_("Solo"), action_name); if (act) { + Glib::RefPtr<RadioAction> ract = Glib::RefPtr<RadioAction>::cast_dynamic (act); if (ract) { + /* because these are radio buttons, one of them will be + active no matter what. to trigger a change in the + action so that the view picks it up, toggle it. + */ + if (ract->get_active()) { + ract->set_active (false); + } ract->set_active (true); } + } } |