[polari/wip/raresv/popoverRebasedOnTracker] send the nickname along with the contacts-changed signal
- From: Rares Visalom <raresvisalom src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/raresv/popoverRebasedOnTracker] send the nickname along with the contacts-changed signal
- Date: Fri, 22 Jul 2016 13:10:16 +0000 (UTC)
commit 1c7ad6b2459040f9f6a34ae79619bf0d3bc7d6d1
Author: raresv <rares visalom gmail com>
Date: Wed Jul 20 18:03:40 2016 +0300
send the nickname along with the contacts-changed signal
src/userTracker.js | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/userTracker.js b/src/userTracker.js
index b427ffb..51a4a4c 100644
--- a/src/userTracker.js
+++ b/src/userTracker.js
@@ -65,7 +65,8 @@ const UserTracker = new Lang.Class({
* by using the baseNick in details but passing the actual
* nick) */
'contacts-changed': {
- flags: GObject.SignalFlags.DETAILED
+ flags: GObject.SignalFlags.DETAILED,
+ param_types: [GObject.TYPE_STRING]
}
},
@@ -247,7 +248,7 @@ const UserTracker = new Lang.Class({
if (this._pushMember(roomMap, baseNick, member) == 1)
this._runHandlers(room, member, status);
- this.emit("contacts-changed::" + baseNick);
+ this.emit("contacts-changed::" + baseNick, member.alias);
},
_popMember: function(map, baseNick, member) {
@@ -269,7 +270,7 @@ const UserTracker = new Lang.Class({
if (nContacts == 0) {
this.emit("status-changed::" + baseNick, member.alias, status);
}
- this.emit("contacts-changed::" + baseNick);
+ this.emit("contacts-changed::" + baseNick, member.alias);
let notifyActionName = this.getNotifyActionName(member.alias);
let notifyAction = this._app.lookup_action(notifyActionName);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]