summaryrefslogtreecommitdiffstats
path: root/src/LashProxy.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-15 03:59:18 +0000
committerDavid Robillard <d@drobilla.net>2010-12-15 03:59:18 +0000
commitcbe721af1a9c84169cec5e58ffbd71367bb8199b (patch)
treeb209ed019e1d4ddb9d190f93404837860c3cd569 /src/LashProxy.cpp
parent3379430e15a59a96562e8cdebe7cbf81efc1b3d3 (diff)
downloadpatchage-cbe721af1a9c84169cec5e58ffbd71367bb8199b.tar.gz
patchage-cbe721af1a9c84169cec5e58ffbd71367bb8199b.tar.bz2
patchage-cbe721af1a9c84169cec5e58ffbd71367bb8199b.zip
Simplify LashClient.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2694 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/LashProxy.cpp')
-rw-r--r--src/LashProxy.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/LashProxy.cpp b/src/LashProxy.cpp
index fb4fffc..02fd311 100644
--- a/src/LashProxy.cpp
+++ b/src/LashProxy.cpp
@@ -355,7 +355,7 @@ LashProxyImpl::dbus_message_hook(
client = me->_session->find_client_by_id(client_id);
if (client) {
- client->on_name_changed(client_name);
+ client->set_name(client_name);
}
return DBUS_HANDLER_RESULT_HANDLED;
@@ -491,12 +491,7 @@ LashProxyImpl::on_client_added(
string id,
string name)
{
- shared_ptr<LashClient> client(
- new LashClient(
- _interface,
- project.get(),
- id,
- name));
+ shared_ptr<LashClient> client(new LashClient(project.get(), id, name));
project->on_client_added(client);
_session->client_add(client);