summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_ui.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-03-10 17:31:16 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-03-10 17:31:16 +0000
commit325671e20afa56f5c796d14ce9bb76146a232f0b (patch)
treed8eca3efc7d95d013459cee81fa55732a5b6d35d /gtk2_ardour/route_ui.cc
parentb2bc408cef1715de0009c65ff082c6e914de1991 (diff)
how about that ... a monitor/main section .. GUI is still unfinished .. several small fixes to processor loading/listen mgmt and a few debug output lines rmeoved. knob images are provisional, and can be found in icons/knob.png and related files
git-svn-id: svn://localhost/ardour2/branches/3.0@6744 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/route_ui.cc')
-rw-r--r--gtk2_ardour/route_ui.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc
index 1a75132e4c..c074c93cd0 100644
--- a/gtk2_ardour/route_ui.cc
+++ b/gtk2_ardour/route_ui.cc
@@ -766,13 +766,13 @@ RouteUI::update_solo_display ()
void
RouteUI::solo_changed_so_update_mute ()
{
- Gtkmm2ext::UI::instance()->call_slot (boost::bind (&RouteUI::update_mute_display, this));
+ update_mute_display ();
}
void
RouteUI::mute_changed(void* /*src*/)
{
- Gtkmm2ext::UI::instance()->call_slot (boost::bind (&RouteUI::update_mute_display, this));
+ update_mute_display ();
}
int
@@ -812,6 +812,10 @@ RouteUI::mute_visual_state (Session* s, boost::shared_ptr<Route> r)
void
RouteUI::update_mute_display ()
{
+ if (!_route) {
+ return;
+ }
+
bool model = _route->muted();
bool view = mute_button->get_active();
@@ -837,17 +841,13 @@ RouteUI::route_rec_enable_changed ()
void
RouteUI::session_rec_enable_changed ()
{
- if (!rec_enable_button) {
- return;
- }
-
- Gtkmm2ext::UI::instance()->call_slot (boost::bind (&RouteUI::update_rec_display, this));
+ update_rec_display ();
}
void
RouteUI::update_rec_display ()
{
- if (!rec_enable_button) {
+ if (!rec_enable_button || !_route) {
return;
}