[gnome-shell] userMenu: Consider account-validity for sensitivity
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] userMenu: Consider account-validity for sensitivity
- Date: Sat, 17 Mar 2012 16:43:17 +0000 (UTC)
commit cf0b6dda257efb64b55a792eee8a8e89d4baff2e
Author: Florian MÃllner <fmuellner gnome org>
Date: Fri Mar 16 22:47:42 2012 +0100
userMenu: Consider account-validity for sensitivity
We currently only update the status chooser's sensitivity if accounts
are added, removed or enabled; unfortunately during account creation,
the account may become enabled before it is actually valid, so the
status chooser remains insensitive. Fix by listening to validity changes
as well.
https://bugzilla.gnome.org/show_bug.cgi?id=672265
js/ui/userMenu.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js
index 86c10e5..4894892 100644
--- a/js/ui/userMenu.js
+++ b/js/ui/userMenu.js
@@ -165,6 +165,8 @@ const IMStatusChooserItem = new Lang.Class({
Lang.bind(this, this._IMAccountsChanged));
this._accountMgr.connect('account-removed',
Lang.bind(this, this._IMAccountsChanged));
+ this._accountMgr.connect('account-validity-changed',
+ Lang.bind(this, this._IMAccountsChanged));
this._accountMgr.prepare_async(null, Lang.bind(this,
function(mgr) {
let [presence, status, msg] = mgr.get_most_available_presence();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]