power: Use the new gnome-settings-daemon DBus names now the power plugin has moved there

This commit is contained in:
Richard Hughes 2011-07-04 12:09:06 +01:00
parent 2feff4207b
commit c567690004

View File

@ -12,8 +12,8 @@ const PanelMenu = imports.ui.panelMenu;
const PopupMenu = imports.ui.popupMenu; const PopupMenu = imports.ui.popupMenu;
const Util = imports.misc.util; const Util = imports.misc.util;
const BUS_NAME = 'org.gnome.PowerManager'; const BUS_NAME = 'org.gnome.SettingsDaemon';
const OBJECT_PATH = '/org/gnome/PowerManager'; const OBJECT_PATH = '/org/gnome/SettingsDaemon/Power';
const UPDeviceType = { const UPDeviceType = {
UNKNOWN: 0, UNKNOWN: 0,
@ -41,7 +41,7 @@ const UPDeviceState = {
}; };
const PowerManagerInterface = { const PowerManagerInterface = {
name: 'org.gnome.PowerManager', name: 'org.gnome.SettingsDaemon.Power',
methods: [ methods: [
{ name: 'GetDevices', inSignature: '', outSignature: 'a(susbut)' }, { name: 'GetDevices', inSignature: '', outSignature: 'a(susbut)' },
{ name: 'GetPrimaryDevice', inSignature: '', outSignature: '(susbut)' }, { name: 'GetPrimaryDevice', inSignature: '', outSignature: '(susbut)' },