TelepathyClient: fix regression from 6f5b700833

https://bugzilla.gnome.org/show_bug.cgi?id=684035
This commit is contained in:
Giovanni Campagna 2012-09-14 18:15:51 +02:00
parent 638507caff
commit e62c66b153

View File

@ -488,7 +488,7 @@ const ChatSource = new Lang.Class({
let rightClickMenu = this.parent();
item = new PopupMenu.PopupMenuItem('');
item.actor.connect('notify::mapped', Lang.bind(this, function() {
item.label.set_text(source.isMuted ? _("Unmute") : _("Mute"));
item.label.set_text(this.isMuted ? _("Unmute") : _("Mute"));
}));
item.connect('activate', Lang.bind(this, function() {
this.setMuted(!this.isMuted);