[gnome-shell] user-menu: Minor style fix



commit dde124ab5af04449fe01cad0e352034480b999f3
Author: Florian MÃllner <fmuellner gnome org>
Date:   Thu Oct 20 22:44:09 2011 +0200

    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 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js
index d2b0ea3..b232ac4 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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]