[gnome-session] Fix SessionIsActive property
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session] Fix SessionIsActive property
- Date: Mon, 9 Mar 2015 15:01:46 +0000 (UTC)
commit cf408335c891b41824f2071ec8433490d735e399
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Mar 6 18:13:40 2015 -0500
Fix SessionIsActive property
GsmSystemd emits its cold-plug notify::active signal out of
init(), giving GsmManager no chance to connect its signal handler
in time to catch the initial emission. And even if we did,
the GsmManager handler can only operate once the skeleton object
exists.
Therefore, do our own cold-plug after creating the skeleton.
This is fallout from the GDBus port.
https://bugzilla.gnome.org/show_bug.cgi?id=745762
gnome-session/gsm-manager.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gnome-session/gsm-manager.c b/gnome-session/gsm-manager.c
index 775873f..70ef94f 100644
--- a/gnome-session/gsm-manager.c
+++ b/gnome-session/gsm-manager.c
@@ -3210,6 +3210,9 @@ register_manager (GsmManager *manager)
manager->priv->connection = connection;
manager->priv->skeleton = skeleton;
+ /* cold-plug SessionIsActive */
+ on_gsm_system_active_changed (manager->priv->system, NULL, manager);
+
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]