[gnome-shell/wip/gdbus: 1/3] screensaver, gnomesession: port to GDBus based bindings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/gdbus: 1/3] screensaver, gnomesession: port to GDBus based bindings
- Date: Tue, 15 Nov 2011 14:06:00 +0000 (UTC)
commit 9eb671bb089437bed295a458d604a40b1b72eaf4
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Tue Aug 16 14:24:39 2011 +0200
screensaver, gnomesession: port to GDBus based bindings
Port org.gnome.ScreenSaver and org.gnome.SessionManager glue code
to use GDBus, and move /org/gnome/Shell/EndSessionDialog to the
GDBus connection, so it is backed by the org.gnome.Shell name.
https://bugzilla.gnome.org/show_bug.cgi?id=648651
js/ui/userMenu.js | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js
index 7e4fbe3..c3e4e4f 100644
--- a/js/ui/userMenu.js
+++ b/js/ui/userMenu.js
@@ -309,7 +309,9 @@ IMStatusChooserItem.prototype = {
this._setComboboxPresence(presence);
if (!this._sessionPresenceRestored) {
- this._sessionStatusChanged(this._presence.status);
+ this._presence.connectSignal('StatusChanged', Lang.bind(this, function (proxy, senderName, [status]) {
+ this._sessionStatusChanged(status);
+ }));
return;
}
@@ -469,6 +471,10 @@ UserMenuButton.prototype = {
this._idleIcon = new St.Icon({ icon_name: 'user-idle',
style_class: 'popup-menu-icon' });
+ this._presence.connectSignal('StatusChanged', Lang.bind(this, function (proxy, senderName, [status]) {
+ this._updateSwitch(status);
+ }));
+
this._accountMgr.connect('most-available-presence-changed',
Lang.bind(this, this._updatePresenceIcon));
this._accountMgr.prepare_async(null, Lang.bind(this,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]