{
switch ((shuttle_units = u)) {
case Percentage:
- static_cast<Label*>(shuttle_units_button.get_child())->set_text ("% ");
+ shuttle_units_button.set_label("% ");
break;
case Semitones:
- static_cast<Label*>(shuttle_units_button.get_child())->set_text (_("st"));
+ shuttle_units_button.set_label(_("st"));
break;
}
}
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);
}
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);
}
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);
}
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);
}
break;
default:
- static_cast<Gtk::Label*>(auto_button.get_child())->set_text (_("???"));
+ auto_button.set_label (_("???"));
break;
}
}
{
switch (_width) {
case Wide:
- static_cast<Gtk::Label*> (gain_automation_style_button.get_child())->set_text (astyle_string(_route.gain_automation_curve().automation_style()));
+ gain_automation_style_button.set_label (astyle_string(_route.gain_automation_curve().automation_style()));
break;
case Narrow:
- static_cast<Gtk::Label*> (gain_automation_style_button.get_child())->set_text (short_astyle_string(_route.gain_automation_curve().automation_style()));
+ gain_automation_style_button.set_label (short_astyle_string(_route.gain_automation_curve().automation_style()));
break;
}
}
switch (_width) {
case Wide:
- static_cast<Gtk::Label*> (gain_automation_state_button.get_child())->set_text (astate_string(_route.gain_automation_curve().automation_state()));
+ gain_automation_state_button.set_label (astate_string(_route.gain_automation_curve().automation_state()));
break;
case Narrow:
- static_cast<Gtk::Label*> (gain_automation_state_button.get_child())->set_text (short_astate_string(_route.gain_automation_curve().automation_state()));
+ gain_automation_state_button.set_label (short_astate_string(_route.gain_automation_curve().automation_state()));
break;
}
switch (_width) {
case Wide:
- static_cast<Gtk::Label*> (pan_automation_style_button.get_child())->set_text (astyle_string(_route.panner().automation_style()));
+ pan_automation_style_button.set_label (astyle_string(_route.panner().automation_style()));
break;
case Narrow:
- static_cast<Gtk::Label*> (pan_automation_style_button.get_child())->set_text (short_astyle_string(_route.panner().automation_style()));
+ pan_automation_style_button.set_label (short_astyle_string(_route.panner().automation_style()));
break;
}
}
switch (_width) {
case Wide:
- static_cast<Gtk::Label*> (pan_automation_state_button.get_child())->set_text (astate_string(_route.panner().automation_state()));
+ pan_automation_state_button.set_label (astate_string(_route.panner().automation_state()));
break;
case Narrow:
- static_cast<Gtk::Label*> (pan_automation_state_button.get_child())->set_text (short_astate_string(_route.panner().automation_state()));
+ pan_automation_state_button.set_label (short_astate_string(_route.panner().automation_state()));
break;
}
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);
}
}
for (vector<BarController*>::iterator i = pan_bars.begin(); i != pan_bars.end(); ++i) {
(*i)->set_size_request (61, 15);
}
- static_cast<Gtk::Label*> (panning_link_button.get_child())->set_text (_("link"));
+ panning_link_button.set_label (_("link"));
break;
case Narrow:
panning_viewport.set_size_request (31, 61);
for (vector<BarController*>::iterator i = pan_bars.begin(); i != pan_bars.end(); ++i) {
(*i)->set_size_request (31, 15);
}
- static_cast<Gtk::Label*> (panning_link_button.get_child())->set_text (_("L"));
+ panning_link_button.set_label (_("L"));
break;
}
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;
}
}