summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_time_axis.cc
diff options
context:
space:
mode:
authorNick Mainsbridge <beatroute@iprimus.com.au>2006-04-22 16:49:51 +0000
committerNick Mainsbridge <beatroute@iprimus.com.au>2006-04-22 16:49:51 +0000
commitd3a573bf3eb3541801fb48bb936af663332e142e (patch)
treeb432ff70bc634b1679abb73445c6423ff9c6e80b /gtk2_ardour/automation_time_axis.cc
parentdcd4c89f34f51e3a65f01584f79d6569ccc3b1b1 (diff)
Set button labels sanely.
git-svn-id: svn://localhost/trunk/ardour2@464 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_time_axis.cc')
-rw-r--r--gtk2_ardour/automation_time_axis.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc
index 0c4a5fce5c..3831e253b4 100644
--- a/gtk2_ardour/automation_time_axis.cc
+++ b/gtk2_ardour/automation_time_axis.cc
@@ -209,7 +209,7 @@ AutomationTimeAxisView::automation_state_changed ()
switch (state & (Off|Play|Touch|Write)) {
case Off:
- static_cast<Gtk::Label*>(auto_button.get_child())->set_text (_("off"));
+ auto_button.set_label (_("off"));
if (auto_off_item) {
ignore_state_request = true;
auto_off_item->set_active (true);
@@ -220,7 +220,7 @@ AutomationTimeAxisView::automation_state_changed ()
}
break;
case Play:
- static_cast<Gtk::Label*>(auto_button.get_child())->set_text (_("play"));
+ auto_button.set_label (_("play"));
if (auto_play_item) {
ignore_state_request = true;
auto_play_item->set_active (true);
@@ -231,7 +231,7 @@ AutomationTimeAxisView::automation_state_changed ()
}
break;
case Write:
- static_cast<Gtk::Label*>(auto_button.get_child())->set_text (_("write"));
+ auto_button.set_label (_("write"));
if (auto_write_item) {
ignore_state_request = true;
auto_write_item->set_active (true);
@@ -242,7 +242,7 @@ AutomationTimeAxisView::automation_state_changed ()
}
break;
case Touch:
- static_cast<Gtk::Label*>(auto_button.get_child())->set_text (_("touch"));
+ auto_button.set_label (_("touch"));
if (auto_touch_item) {
ignore_state_request = true;
auto_touch_item->set_active (true);
@@ -253,7 +253,7 @@ AutomationTimeAxisView::automation_state_changed ()
}
break;
default:
- static_cast<Gtk::Label*>(auto_button.get_child())->set_text (_("???"));
+ auto_button.set_label (_("???"));
break;
}
}