[polari/wip/fmuellner/combined-gsoc: 98/137] chatView: Rename a handler



commit fdaa548f11874945434f6ec858ff64f3338c5765
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Jul 19 23:53:50 2016 +0200

    chatView: Rename a handler
    
    I know I'm usually asking for shortening names, but here it makes
    sense to specify which status it is we're talking about (there's
    a lot of different stuff in chatView, so it's not exactly clear
    from context).

 src/chatView.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index 3b18091..8330f4d 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -347,12 +347,12 @@ const ChatView = new Lang.Class({
         }));
         this._onChannelChanged();
 
-        this._roomStatusChangedId =
+        this._nickStatusChangedId =
             this._userTracker.watchUser(this._room, null,
-                                        Lang.bind(this, this._onStatusChanged));
+                                        Lang.bind(this, this._onNickStatusChanged));
 
         this.connect('destroy', () => {
-            this._userTracker.unwatchUser(this._room, this._roomStatusChangedId);
+            this._userTracker.unwatchUser(this._room, this._nickStatusChangedId);
             this._userTracker = null;
         });
     },
@@ -1262,7 +1262,7 @@ const ChatView = new Lang.Class({
                               this._view.buffer.create_mark(null, iter, true));
     },
 
-    _onStatusChanged: function(nick, status) {
+    _onNickStatusChanged: function(nick, status) {
         let nickTagName = this._getNickTagName(nick);
         let nickTag = this._lookupTag(nickTagName);
 


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