[gnome-session] client: track client disconnection for dbus clients
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session] client: track client disconnection for dbus clients
- Date: Mon, 14 Mar 2016 20:26:53 +0000 (UTC)
commit d0b97beb26ea923143e2253ace0f4afc87b17308
Author: Ray Strode <rstrode redhat com>
Date: Mon Mar 14 15:42:45 2016 -0400
client: track client disconnection for dbus clients
We currently don't notice when dbus clients go away
(well we notice, but ignore it).
This commit fixes that.
https://bugzilla.gnome.org/show_bug.cgi?id=763169
gnome-session/gsm-manager.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gnome-session/gsm-manager.c b/gnome-session/gsm-manager.c
index f71d277..a378cd9 100644
--- a/gnome-session/gsm-manager.c
+++ b/gnome-session/gsm-manager.c
@@ -2742,6 +2742,11 @@ gsm_manager_register_client (GsmExportedManager *skeleton,
/* the store will own the ref */
g_object_unref (client);
+ g_signal_connect (client,
+ "disconnected",
+ G_CALLBACK (on_client_disconnected),
+ manager);
+
if (app != NULL) {
gsm_client_set_app_id (client, gsm_app_peek_app_id (app));
gsm_app_set_registered (app, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]