From d9c5d89d230b204a90cca4dee4165ba6ebdf00fd Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Jan 2018 20:52:32 +0100 Subject: Only enqueue messages when the engine is remote When the engine is local, messages are emitted in the Gtk thread and applied immediately. This should make the GUI more responsive. --- src/gui/App.hpp | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'src/gui/App.hpp') diff --git a/src/gui/App.hpp b/src/gui/App.hpp index 573925e6..953e1702 100644 --- a/src/gui/App.hpp +++ b/src/gui/App.hpp @@ -75,7 +75,7 @@ public: void error_message(const std::string& str); - void attach(SPtr client); + void attach(SPtr client); void detach(); @@ -118,11 +118,13 @@ public: Style* style() const { return _style; } WindowFactory* window_factory() const { return _window_factory; } - Ingen::Forge& forge() const { return _world->forge(); } - SPtr interface() const { return _world->interface(); } - SPtr client() const { return _client; } - SPtr store() const { return _store; } - SPtr loader() const { return _loader; } + Ingen::Forge& forge() const { return _world->forge(); } + SPtr interface() const { return _world->interface(); } + SPtr client() const { return _client; } + SPtr store() const { return _store; } + SPtr loader() const { return _loader; } + + SPtr sig_client(); SPtr serialiser(); @@ -157,10 +159,10 @@ protected: static Gtk::Main* _main; - SPtr _client; - SPtr _store; - SPtr _loader; - SPtr _dumper; + SPtr _client; + SPtr _store; + SPtr _loader; + SPtr _dumper; Style* _style; -- cgit v1.2.1