Shorten sync-button label/size

This commit is contained in:
Robin Gareus 2016-12-18 23:17:29 +01:00
parent 2cb9f4167a
commit bd0fc8cafc
3 changed files with 7 additions and 7 deletions

View file

@ -261,7 +261,7 @@ ARDOUR_UI::setup_transport ()
act = ActionManager::get_action (X_("Transport"), X_("ToggleExternalSync")); act = ActionManager::get_action (X_("Transport"), X_("ToggleExternalSync"));
sync_button.set_related_action (act); 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 */ /* CANNOT sigc::bind these to clicked or toggled, must use pressed or released */
act = ActionManager::get_action (X_("Main"), X_("cancel-solo")); act = ActionManager::get_action (X_("Main"), X_("cancel-solo"));

View file

@ -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)); ActionManager::map_some_state ("Transport", "ToggleExternalSync", sigc::mem_fun (_session->config, &SessionConfiguration::get_external_sync));
if (!_session->config.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); auto_loop_button.set_sensitive (true);
ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (true); ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (true);
ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (true); ActionManager::get_action ("Transport", "ToggleAutoReturn")->set_sensitive (true);

View file

@ -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 /* no other backends offer sync for now ... deal with this if we
* ever have to. * ever have to.
*/ */
return _("JACK"); return S_("SyncSource|JACK");
case MTC: case MTC:
if (sh) { if (sh) {
return _("MTC"); return S_("SyncSource|MTC");
} else { } else {
return _("MIDI Timecode"); return _("MIDI Timecode");
} }
case MIDIClock: case MIDIClock:
if (sh) { if (sh) {
return _("M-Clock"); return S_("SyncSource|M-Clk");
} else { } else {
return _("MIDI Clock"); return _("MIDI Clock");
} }
case LTC: case LTC:
return _("LTC"); return S_("SyncSource|LTC");
} }
/* GRRRR .... stupid, stupid gcc - you can't get here from there, all enum values are handled */ /* GRRRR .... stupid, stupid gcc - you can't get here from there, all enum values are handled */
return _("JACK"); return S_("SyncSource|JACK");
} }
float float