diff options
author | Nick Mainsbridge <beatroute@iprimus.com.au> | 2006-04-22 16:49:51 +0000 |
---|---|---|
committer | Nick Mainsbridge <beatroute@iprimus.com.au> | 2006-04-22 16:49:51 +0000 |
commit | d3a573bf3eb3541801fb48bb936af663332e142e (patch) | |
tree | b432ff70bc634b1679abb73445c6423ff9c6e80b /gtk2_ardour/option_editor.cc | |
parent | dcd4c89f34f51e3a65f01584f79d6569ccc3b1b1 (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.cc | 4 |
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); } } |