diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2012-05-28 11:33:07 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2012-05-28 11:33:07 -0500 |
commit | b9a6194c12bf39fb6317edc1126ea32e890da583 (patch) | |
tree | 77ee861b8290309219a0911270f1f87d282e1129 /src/dbus-listener.c | |
parent | 23a2672a1a763cdef67ccc5cb9f8fec7daf021be (diff) | |
download | ayatana-indicator-power-b9a6194c12bf39fb6317edc1126ea32e890da583.tar.gz ayatana-indicator-power-b9a6194c12bf39fb6317edc1126ea32e890da583.tar.bz2 ayatana-indicator-power-b9a6194c12bf39fb6317edc1126ea32e890da583.zip |
add a mock GSD.Power to handle the GetPower requests
Diffstat (limited to 'src/dbus-listener.c')
-rw-r--r-- | src/dbus-listener.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/dbus-listener.c b/src/dbus-listener.c index 6a85fd4..a7a29ee 100644 --- a/src/dbus-listener.c +++ b/src/dbus-listener.c @@ -24,11 +24,6 @@ License along with this library. If not, see #include "dbus-listener.h" #include "device.h" -#define DBUS_SERVICE "org.gnome.SettingsDaemon" -#define DBUS_PATH "/org/gnome/SettingsDaemon" -#define POWER_DBUS_PATH DBUS_PATH "/Power" -#define POWER_DBUS_INTERFACE "org.gnome.SettingsDaemon.Power" - struct _IndicatorPowerDbusListenerPrivate { GCancellable * cancellable; @@ -89,7 +84,7 @@ indicator_power_dbus_listener_init (IndicatorPowerDbusListener *self) priv->cancellable = g_cancellable_new (); priv->watcher_id = g_bus_watch_name (G_BUS_TYPE_SESSION, - DBUS_SERVICE, + GSD_SERVICE, G_BUS_NAME_WATCHER_FLAGS_NONE, gsd_appeared_callback, NULL, @@ -226,8 +221,8 @@ gsd_appeared_callback (GDBusConnection *connection, G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START, NULL, name, - POWER_DBUS_PATH, - POWER_DBUS_INTERFACE, + GSD_POWER_DBUS_PATH, + GSD_POWER_DBUS_INTERFACE, priv->cancellable, service_proxy_cb, self); |