revert UIConfiguration back to a normal member of ARDOUR_UI
This commit is contained in:
@@ -150,7 +150,6 @@ using namespace Gtk;
|
||||
using namespace std;
|
||||
|
||||
ARDOUR_UI *ARDOUR_UI::theArdourUI = 0;
|
||||
UIConfiguration *ARDOUR_UI::ui_config = 0;
|
||||
|
||||
sigc::signal<void,bool> ARDOUR_UI::Blink;
|
||||
sigc::signal<void> ARDOUR_UI::RapidScreenUpdate;
|
||||
@@ -162,7 +161,7 @@ sigc::signal<void> ARDOUR_UI::CloseAllDialogs;
|
||||
ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[], const char* localedir)
|
||||
|
||||
: Gtkmm2ext::UI (PROGRAM_NAME, argcp, argvp)
|
||||
|
||||
, ui_config (new UIConfiguration)
|
||||
, gui_object_state (new GUIObjectState)
|
||||
|
||||
, primary_clock (new MainClock (X_("primary"), false, X_("transport"), true, true, true, false, true))
|
||||
@@ -397,12 +396,6 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[], const char* localedir)
|
||||
attach_to_engine ();
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::create_configuration ()
|
||||
{
|
||||
ui_config = new UIConfiguration();
|
||||
}
|
||||
|
||||
GlobalPortMatrixWindow*
|
||||
ARDOUR_UI::create_global_port_matrix (ARDOUR::DataType type)
|
||||
{
|
||||
|
||||
@@ -129,7 +129,13 @@ namespace Gtkmm2ext {
|
||||
|
||||
class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
|
||||
{
|
||||
public:
|
||||
private:
|
||||
/* This must be the first data element because constructor ordering
|
||||
relies on it.
|
||||
*/
|
||||
UIConfiguration* ui_config;
|
||||
|
||||
public:
|
||||
ARDOUR_UI (int *argcp, char **argvp[], const char* localedir);
|
||||
~ARDOUR_UI();
|
||||
|
||||
@@ -168,9 +174,8 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
|
||||
void save_state (const std::string & state_name = "", bool switch_to_it = false);
|
||||
|
||||
static ARDOUR_UI *instance () { return theArdourUI; }
|
||||
static UIConfiguration *config () { return ui_config; }
|
||||
static void create_configuration();
|
||||
|
||||
static UIConfiguration *config () { return theArdourUI->ui_config; }
|
||||
|
||||
PublicEditor& the_editor(){return *editor;}
|
||||
Mixer_UI* the_mixer() { return mixer; }
|
||||
|
||||
@@ -218,7 +223,7 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
|
||||
void create_xrun_marker (framepos_t);
|
||||
|
||||
GUIObjectState* gui_object_state;
|
||||
|
||||
|
||||
MainClock* primary_clock;
|
||||
MainClock* secondary_clock;
|
||||
void focus_on_clock ();
|
||||
@@ -324,7 +329,7 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
|
||||
|
||||
private:
|
||||
Gtk::Tooltips _tooltips;
|
||||
NSM_Client *nsm;
|
||||
NSM_Client* nsm;
|
||||
bool _was_dirty;
|
||||
bool _mixer_on_top;
|
||||
bool first_time_engine_run;
|
||||
@@ -649,8 +654,6 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
|
||||
BigClockWindow* create_big_clock_window();
|
||||
GlobalPortMatrixWindow* create_global_port_matrix (ARDOUR::DataType);
|
||||
|
||||
static UIConfiguration *ui_config;
|
||||
|
||||
ARDOUR::SystemExec *video_server_process;
|
||||
|
||||
void handle_locations_change (ARDOUR::Location*);
|
||||
|
||||
@@ -271,7 +271,6 @@ int main (int argc, char *argv[])
|
||||
#endif
|
||||
|
||||
try {
|
||||
ARDOUR_UI::create_configuration ();
|
||||
ui = new ARDOUR_UI (&argc, &argv, localedir);
|
||||
} catch (failed_constructor& err) {
|
||||
error << string_compose (_("could not create %1 GUI"), PROGRAM_NAME) << endmsg;
|
||||
|
||||
Reference in New Issue
Block a user