[gnome-shell] power: Fix icon updates



commit 8bcbf3030f1c6c3088d4aa2b921d5d7031828ce9
Author: Florian MÃllner <fmuellner gnome org>
Date:   Sun Jan 29 22:19:38 2012 +0100

    power: Fix icon updates
    
    gnome-settings-daemon commit 07b1ed63016 removed the custom 'Changed'
    DBus signal in favor of the standard 'PropertiesChanged' signal, so
    use that instead to update the icon.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=667371

 js/ui/status/power.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/status/power.js b/js/ui/status/power.js
index 60600bf..9391bf8 100644
--- a/js/ui/status/power.js
+++ b/js/ui/status/power.js
@@ -46,7 +46,6 @@ const PowerManagerInterface = <interface name="org.gnome.SettingsDaemon.Power">
 <method name="GetPrimaryDevice">
     <arg type="(susdut)" direction="out" />
 </method>
-<signal name="Changed" />
 <property name="Icon" type="s" access="read" />
 </interface>;
 
@@ -76,7 +75,8 @@ const Indicator = new Lang.Class({
         this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
         this.menu.addSettingsAction(_("Power Settings"), 'gnome-power-panel.desktop');
 
-        this._proxy.connectSignal('Changed', Lang.bind(this, this._devicesChanged));
+        this._proxy.connect('g-properties-changed',
+                            Lang.bind(this, this._devicesChanged));
         this._devicesChanged();
     },
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]