diff options
author | David Robillard <d@drobilla.net> | 2012-03-12 02:28:21 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-12 02:28:21 +0000 |
commit | e9d9569271ee962c09ab66c6babed1ca5655a6c6 (patch) | |
tree | f77142b08c2bf2488eb382e993da1477c0b94307 /src/gui/App.cpp | |
parent | 7835b3d8c9b5b4a6f4959f56083d62826e6f7b8e (diff) | |
download | ingen-e9d9569271ee962c09ab66c6babed1ca5655a6c6.tar.gz ingen-e9d9569271ee962c09ab66c6babed1ca5655a6c6.tar.bz2 ingen-e9d9569271ee962c09ab66c6babed1ca5655a6c6.zip |
Unify event response mechanism and make it more appropriate for wire transmission.
The downside being more cryptic error messages until the client side error reporting stuff gets more fancy, but the important part is that belongs client side.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4053 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/App.cpp')
-rw-r--r-- | src/gui/App.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/App.cpp b/src/gui/App.cpp index 5a42af53..e23ef5a6 100644 --- a/src/gui/App.cpp +++ b/src/gui/App.cpp @@ -167,8 +167,8 @@ App::attach(SharedPtr<SigClientInterface> client) _patch_tree_window->init(*this, *_store); - _client->signal_response_error().connect( - sigc::mem_fun(this, &App::error_response)); + _client->signal_response().connect( + sigc::mem_fun(this, &App::response)); _client->signal_error().connect( sigc::mem_fun(this, &App::error_message)); _client->signal_property_change().connect( @@ -199,9 +199,11 @@ App::serialiser() } void -App::error_response(int32_t id, const string& str) +App::response(int32_t id, Status status) { - error_message(str); + if (status) { + error_message(ingen_status_string(status)); + } } void |