[gnome-shell] telepathyClient: Fix fallout from Lang.Class port
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] telepathyClient: Fix fallout from Lang.Class port
- Date: Wed, 25 Jan 2012 07:13:45 +0000 (UTC)
commit 0c19f71c968dea1df38de820dde6aae6b3581277
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Nov 28 04:38:00 2011 -0500
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 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js
index e99a5ed..a74be89 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 });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]