summaryrefslogtreecommitdiff
path: root/gtk2_ardour/option_editor.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/option_editor.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/option_editor.cc')
-rw-r--r--gtk2_ardour/option_editor.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc
index 9bd22ca590..b50b71f143 100644
--- a/gtk2_ardour/option_editor.cc
+++ b/gtk2_ardour/option_editor.cc
@@ -611,10 +611,10 @@ void
OptionEditor::map_port_online (MIDI::Port* port, ToggleButton* tb)
{
if (port->input()->offline()) {
- static_cast<Label*>(tb->get_child())->set_text (_("offline"));
+ tb->set_label (_("offline"));
tb->set_active (false);
} else {
- static_cast<Label*>(tb->get_child())->set_text (_("online"));
+ tb->set_label (_("online"));
tb->set_active (true);
}
}