From eb0f2b8b349229b65f2b479e9ece7ffa3d3e03fc Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Mon, 21 Apr 2014 18:58:56 +0200 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/status/rfkill.js b/js/ui/status/rfkill.js index e14da8cea..b9d3eaf67 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);