Shorten sync-button label/size
This commit is contained in:
parent
2cb9f4167a
commit
bd0fc8cafc
|
@ -261,7 +261,7 @@ ARDOUR_UI::setup_transport ()
|
|||
act = ActionManager::get_action (X_("Transport"), X_("ToggleExternalSync"));
|
||||
sync_button.set_related_action (act);
|
||||
|
||||
sync_button.set_sizing_text (_("Internal")); // longest of sync_source_to_string()
|
||||
sync_button.set_sizing_text (S_("LogestSync|M-Clk"));
|
||||
|
||||
/* CANNOT sigc::bind these to clicked or toggled, must use pressed or released */
|
||||
act = ActionManager::get_action (X_("Main"), X_("cancel-solo"));
|
||||
|
|
|
@ -306,7 +306,7 @@ ARDOUR_UI::parameter_changed (std::string p)
|
|||
ActionManager::map_some_state ("Transport", "ToggleExternalSync", sigc::mem_fun (_session->config, &SessionConfiguration::get_external_sync));
|
||||
|
||||
if (!_session->config.get_external_sync()) {
|
||||
sync_button.set_text (_("Internal"));
|
||||
sync_button.set_text (S_("SyncSource|Int."));
|
||||
auto_loop_button.set_sensitive (true);
|
||||
ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (true);
|
||||
ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (true);
|
||||
|
|
|
@ -475,27 +475,27 @@ ARDOUR::sync_source_to_string (SyncSource src, bool sh)
|
|||
/* no other backends offer sync for now ... deal with this if we
|
||||
* ever have to.
|
||||
*/
|
||||
return _("JACK");
|
||||
return S_("SyncSource|JACK");
|
||||
|
||||
case MTC:
|
||||
if (sh) {
|
||||
return _("MTC");
|
||||
return S_("SyncSource|MTC");
|
||||
} else {
|
||||
return _("MIDI Timecode");
|
||||
}
|
||||
|
||||
case MIDIClock:
|
||||
if (sh) {
|
||||
return _("M-Clock");
|
||||
return S_("SyncSource|M-Clk");
|
||||
} else {
|
||||
return _("MIDI Clock");
|
||||
}
|
||||
|
||||
case LTC:
|
||||
return _("LTC");
|
||||
return S_("SyncSource|LTC");
|
||||
}
|
||||
/* GRRRR .... stupid, stupid gcc - you can't get here from there, all enum values are handled */
|
||||
return _("JACK");
|
||||
return S_("SyncSource|JACK");
|
||||
}
|
||||
|
||||
float
|
||||
|
|
Loading…
Reference in New Issue