From 0c19f71c968dea1df38de820dde6aae6b3581277 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 28 Nov 2011 04:38:00 -0500 Subject: [PATCH] telepathyClient: Fix fallout from Lang.Class port this.parent was ported from calling the parent class's method like MessageTray.Notification.prototype._init.call(this, ...);. When porting to Lang.Class, the 'this' parameter is now passed automatically, but removing it was forgot in a few places. Fix these places. https://bugzilla.gnome.org/show_bug.cgi?id=665017 --- js/ui/telepathyClient.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js index e99a5edee..a74be892e 100644 --- a/js/ui/telepathyClient.js +++ b/js/ui/telepathyClient.js @@ -1092,7 +1092,7 @@ const AudioVideoNotification = new Lang.Class({ /* translators: argument is a contact name like Alice for example. */ title = _("Call from %s").format(contact.get_alias()); - this.parent(this, source, title, null, { customContent: true }); + this.parent(source, title, null, { customContent: true }); this.setResident(true); this.addButton('reject', _("Reject")); @@ -1123,8 +1123,7 @@ const FileTransferNotification = new Lang.Class({ Extends: MessageTray.Notification, _init: function(source, dispatchOp, channel, contact) { - this.parent(this, - source, + this.parent(source, /* To translators: The first parameter is * the contact's alias and the second one is the * file name. The string will be something @@ -1197,7 +1196,7 @@ const SubscriptionRequestNotification = new Lang.Class({ Extends: MessageTray.Notification, _init: function(source, contact) { - this.parent(this, source, + this.parent(source, /* To translators: The parameter is the contact's alias */ _("%s would like permission to see when you are online").format(contact.get_alias()), null, { customContent: true });