From d3a573bf3eb3541801fb48bb936af663332e142e Mon Sep 17 00:00:00 2001 From: Nick Mainsbridge Date: Sat, 22 Apr 2006 16:49:51 +0000 Subject: Set button labels sanely. git-svn-id: svn://localhost/trunk/ardour2@464 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/plugin_ui.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gtk2_ardour/plugin_ui.cc') 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(cui->automate_button.get_child())->set_text (_("off")); + cui->automate_button.set_label (_("off")); break; case Play: - static_cast(cui->automate_button.get_child())->set_text (_("play")); + cui->automate_button.set_label (_("play")); break; case Write: - static_cast(cui->automate_button.get_child())->set_text (_("write")); + cui->automate_button.set_label (_("write")); break; case Touch: - static_cast(cui->automate_button.get_child())->set_text (_("touch")); + cui->automate_button.set_label (_("touch")); break; default: - static_cast(cui->automate_button.get_child())->set_text (_("???")); + cui->automate_button.set_label (_("???")); break; } } -- cgit v1.2.3