[gnome-shell] rfkill: fix turning off airplane mode from the menu
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] rfkill: fix turning off airplane mode from the menu
- Date: Mon, 21 Apr 2014 17:11:00 +0000 (UTC)
commit 2f720e22fcdffa83de6000b27fe9181d610e94f7
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Mon Apr 21 18:58:56 2014 +0200
rfkill: fix turning off airplane mode from the menu
The menu does not have a proxy anymore, it needs to go through
the manager.
https://bugzilla.gnome.org/show_bug.cgi?id=728512
js/ui/status/rfkill.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/rfkill.js b/js/ui/status/rfkill.js
index e14da8c..b9d3eaf 100644
--- a/js/ui/status/rfkill.js
+++ b/js/ui/status/rfkill.js
@@ -83,7 +83,7 @@ const Indicator = new Lang.Class({
this._item.icon.icon_name = 'airplane-mode-symbolic';
this._item.status.text = _("On");
this._offItem = this._item.menu.addAction(_("Turn Off"), Lang.bind(this, function() {
- this._proxy.AirplaneMode = false;
+ this._manager.airplaneMode = false;
}));
this._item.menu.addSettingsAction(_("Network Settings"), 'gnome-network-panel.desktop');
this.menu.addMenuItem(this._item);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]