indicate debug builds in About > Config and shorten the message to fit

This commit is contained in:
Robin Gareus 2016-03-19 17:33:54 +01:00
parent 4561788777
commit 93cfcd5abf

View file

@ -613,16 +613,22 @@ About::About ()
codename = ""; codename = "";
} }
#ifndef NDEBUG
const std::string suffix = _(" - debug");
#else
const std::string suffix = "";
#endif
set_translator_credits (t); set_translator_credits (t);
set_copyright (_("Copyright (C) 1999-2015 Paul Davis\n")); set_copyright (_("Copyright (C) 1999-2015 Paul Davis\n"));
set_license (gpl); set_license (gpl);
set_name (X_("Ardour")); set_name (X_("Ardour"));
set_website (X_("http://ardour.org/")); set_website (X_("http://ardour.org/"));
set_website_label (_("http://ardour.org/")); set_website_label (_("http://ardour.org/"));
set_version ((string_compose(_("%1%2\n(built from revision %3)\n%4"), set_version ((string_compose(_("%1%2\n(rev %3)\n%4%5"),
VERSIONSTRING, VERSIONSTRING,
codename, codename,
revision, cpu_arch))); revision, cpu_arch, suffix)));
Gtk::Button* config_button = manage (new Button (_("Config"))); Gtk::Button* config_button = manage (new Button (_("Config")));