[polari/wip/fmuellner/combined-gsoc: 103/136] send the nickname along with the contacts-changed signal
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/fmuellner/combined-gsoc: 103/136] send the nickname along with the contacts-changed signal
- Date: Tue, 26 Jul 2016 23:24:38 +0000 (UTC)
commit 1c9f54544834f5335393c32de26cef01d1c04b25
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]