diff options
author | David Robillard <d@drobilla.net> | 2018-01-21 20:52:32 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-01-22 00:20:19 +0100 |
commit | d9c5d89d230b204a90cca4dee4165ba6ebdf00fd (patch) | |
tree | bfef33474927a6c22f723fcc849d8df801f618e9 /src/gui/App.hpp | |
parent | 7150b9bc10511e17abdd6e528fd1317522f64eae (diff) | |
download | ingen-d9c5d89d230b204a90cca4dee4165ba6ebdf00fd.tar.gz ingen-d9c5d89d230b204a90cca4dee4165ba6ebdf00fd.tar.bz2 ingen-d9c5d89d230b204a90cca4dee4165ba6ebdf00fd.zip |
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.
Diffstat (limited to 'src/gui/App.hpp')
-rw-r--r-- | src/gui/App.hpp | 22 |
1 files changed, 12 insertions, 10 deletions
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::SigClientInterface> client); + void attach(SPtr<Ingen::Interface> 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<Ingen::Interface> interface() const { return _world->interface(); } - SPtr<Client::SigClientInterface> client() const { return _client; } - SPtr<Client::ClientStore> store() const { return _store; } - SPtr<ThreadedLoader> loader() const { return _loader; } + Ingen::Forge& forge() const { return _world->forge(); } + SPtr<Ingen::Interface> interface() const { return _world->interface(); } + SPtr<Ingen::Interface> client() const { return _client; } + SPtr<Client::ClientStore> store() const { return _store; } + SPtr<ThreadedLoader> loader() const { return _loader; } + + SPtr<Client::SigClientInterface> sig_client(); SPtr<Serialiser> serialiser(); @@ -157,10 +159,10 @@ protected: static Gtk::Main* _main; - SPtr<Client::SigClientInterface> _client; - SPtr<Client::ClientStore> _store; - SPtr<ThreadedLoader> _loader; - SPtr<StreamWriter> _dumper; + SPtr<Ingen::Interface> _client; + SPtr<Client::ClientStore> _store; + SPtr<ThreadedLoader> _loader; + SPtr<StreamWriter> _dumper; Style* _style; |