summaryrefslogtreecommitdiff
path: root/gtk2_ardour/plugin_ui.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/plugin_ui.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/plugin_ui.cc')
-rw-r--r--gtk2_ardour/plugin_ui.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc
index 00b5ad2dc7..e0d22d8834 100644
--- a/gtk2_ardour/plugin_ui.cc
+++ b/gtk2_ardour/plugin_ui.cc
@@ -388,19 +388,19 @@ PluginUI::automation_state_changed (ControlUI* cui)
switch (insert.get_port_automation_state (cui->port_index) & (Off|Play|Touch|Write)) {
case Off:
- static_cast<Gtk::Label*>(cui->automate_button.get_child())->set_text (_("off"));
+ cui->automate_button.set_label (_("off"));
break;
case Play:
- static_cast<Gtk::Label*>(cui->automate_button.get_child())->set_text (_("play"));
+ cui->automate_button.set_label (_("play"));
break;
case Write:
- static_cast<Gtk::Label*>(cui->automate_button.get_child())->set_text (_("write"));
+ cui->automate_button.set_label (_("write"));
break;
case Touch:
- static_cast<Gtk::Label*>(cui->automate_button.get_child())->set_text (_("touch"));
+ cui->automate_button.set_label (_("touch"));
break;
default:
- static_cast<Gtk::Label*>(cui->automate_button.get_child())->set_text (_("???"));
+ cui->automate_button.set_label (_("???"));
break;
}
}