mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
Move UIConfiguration Singleton into UIConfiguration header
This removes the direct dependence on ardour_ui.h from 39 files
This commit is contained in:
parent
45d487f16e
commit
6b019a4953
84 changed files with 726 additions and 712 deletions
|
|
@ -367,15 +367,13 @@ int main (int argc, char *argv[])
|
|||
}
|
||||
#endif
|
||||
|
||||
UIConfiguration* ui_config = new UIConfiguration;
|
||||
|
||||
if (ui_config->pre_gui_init ()) {
|
||||
if (UIConfiguration::instance().pre_gui_init ()) {
|
||||
error << _("Could not complete pre-GUI initialization") << endmsg;
|
||||
exit (1);
|
||||
}
|
||||
|
||||
try {
|
||||
ui = new ARDOUR_UI (&argc, &argv, localedir.c_str(), ui_config);
|
||||
ui = new ARDOUR_UI (&argc, &argv, localedir.c_str());
|
||||
} catch (failed_constructor& err) {
|
||||
error << string_compose (_("could not create %1 GUI"), PROGRAM_NAME) << endmsg;
|
||||
exit (1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue