[polari/wip/raresv/GSoC: 3/17] application: Initialize UserStatusMonitor on startup
- From: Rares Visalom <raresvisalom src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/raresv/GSoC: 3/17] application: Initialize UserStatusMonitor on startup
- Date: Mon, 22 Aug 2016 19:32:48 +0000 (UTC)
commit b392eb91300db26e2d4db49af327eb4db254c111
Author: raresv <rares visalom gmail com>
Date: Thu Aug 4 01:13:59 2016 +0300
application: Initialize UserStatusMonitor on startup
Since the user tracking functionality is needed right
from the start, we need to instantiate the UserStatusMonitor
as soon as possible so that status changes can be tracked.
src/application.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 7df0b07..1ed21af 100644
--- a/src/application.js
+++ b/src/application.js
@@ -11,6 +11,7 @@ const Connections = imports.connections;
const Lang = imports.lang;
const MainWindow = imports.mainWindow;
const PasteManager = imports.pasteManager;
+const UserTracker = imports.userTracker;
const Utils = imports.utils;
const NetworksManager = imports.networksManager;
@@ -47,6 +48,7 @@ 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();
this._accountsMonitor.connect('account-removed', Lang.bind(this,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]