From dde124ab5af04449fe01cad0e352034480b999f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 20 Oct 2011 22:44:09 +0200 Subject: [PATCH] user-menu: Minor style fix Use cameCase for properties/methods defined in JS and under_score for properties/methods imported from C. --- js/ui/userMenu.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js index d2b0ea37e..b232ac47e 100644 --- a/js/ui/userMenu.js +++ b/js/ui/userMenu.js @@ -430,7 +430,7 @@ UserMenuButton.prototype = { this._session = new GnomeSession.SessionManager(); this._haveShutdown = true; - this._account_mgr = Tp.AccountManager.dup() + this._accountMgr = Tp.AccountManager.dup() this._upClient = new UPowerGlib.Client(); this._screenSaverProxy = new ScreenSaver.ScreenSaverProxy(); @@ -457,9 +457,9 @@ UserMenuButton.prototype = { Lang.bind(this, this._updateSwitch)); this._presence.getStatus(Lang.bind(this, this._updateSwitch)); - this._account_mgr.connect('most-available-presence-changed', + this._accountMgr.connect('most-available-presence-changed', Lang.bind(this, this._updatePresenceIcon)); - this._account_mgr.prepare_async(null, Lang.bind(this, + this._accountMgr.prepare_async(null, Lang.bind(this, function(mgr) { let [presence, s, msg] = mgr.get_most_available_presence(); this._updatePresenceIcon(mgr, presence, s, msg); @@ -653,7 +653,7 @@ UserMenuButton.prototype = { } else { status = GnomeSession.PresenceStatus.BUSY; - let [presence, s, msg] = this._account_mgr.get_most_available_presence(); + let [presence, s, msg] = this._accountMgr.get_most_available_presence(); let newPresence = this._statusChooser.getIMPresenceForSessionStatus(status); if (newPresence != presence && newPresence == Tp.ConnectionPresenceType.BUSY)