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
This commit is contained in:
parent
1bc7edc5d8
commit
8bcbf3030f
@ -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();
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user