[polari/wip/raresv/userTrackerAndPopoversRebase: 11/24] application: removed the first old global userTracker code and add the UserStatusMonitor in applicat



commit c6c994a23d5f77bce0f604aa6f39355a6ecadeeb
Author: raresv <rares visalom gmail com>
Date:   Thu Aug 4 01:13:59 2016 +0300

    application: removed the first old global userTracker code and add the UserStatusMonitor in 
application.js (i think it will be removed).
    application: *fixed rebase halfway split patch* the old global userTracker is commented out (will be 
removed entirely in the future).

 src/application.js |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 7033ccd..b09dff8 100644
--- a/src/application.js
+++ b/src/application.js
@@ -48,13 +48,8 @@ const Application = new Lang.Class({
         this._chatroomManager = ChatroomManager.getDefault();
         this._accountsMonitor = AccountsMonitor.getDefault();
         this._networkMonitor = Gio.NetworkMonitor.get_default();
+        this._userStatusMonitor = UserTracker.getUserStatusMonitor();
         this._networksManager = NetworksManager.getDefault();
-        /*created here as i couldn't make it work if it was created in the chatroomManager
-        (it didn't receive the room-added signal for the channels restored from the previous session)*/
-        this._globalUserTracker = new UserTracker.UserTracker(null);
-        this._globalUserTracker.connect('status-changed', Lang.bind(this, function(tracker, nick, status){
-            log("[Application] nick " + nick + " global status changed to " + status );
-        }));
 
         this._accountsMonitor.connect('account-removed', Lang.bind(this,
             function(am, account) {


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