[gnome-shell/gnome-3-12] rfkill: fix turning off airplane mode from the menu



commit eb0f2b8b349229b65f2b479e9ece7ffa3d3e03fc
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]