[gnome-color-manager] Connect to GSD to change the brightness, not GPM
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] Connect to GSD to change the brightness, not GPM
- Date: Thu, 24 Nov 2011 21:31:06 +0000 (UTC)
commit 2be70491547a305e9650df223c39eeaab224d17c
Author: Richard Hughes <richard hughsie com>
Date: Tue Nov 8 14:53:32 2011 +0000
Connect to GSD to change the brightness, not GPM
src/gcm-brightness.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/gcm-brightness.c b/src/gcm-brightness.c
index d4d10bd..deadd48 100644
--- a/src/gcm-brightness.c
+++ b/src/gcm-brightness.c
@@ -44,9 +44,9 @@ enum {
G_DEFINE_TYPE (GcmBrightness, gcm_brightness, G_TYPE_OBJECT)
-#define GPM_DBUS_SERVICE "org.gnome.PowerManager"
-#define GPM_DBUS_INTERFACE_BACKLIGHT "org.gnome.PowerManager.Backlight"
-#define GPM_DBUS_PATH_BACKLIGHT "/org/gnome/PowerManager/Backlight"
+#define GPM_DBUS_SERVICE "org.gnome.SettingsDaemon"
+#define GPM_DBUS_INTERFACE_BACKLIGHT "org.gnome.SettingsDaemon.Power.Screen"
+#define GPM_DBUS_PATH_BACKLIGHT "/org/gnome/SettingsDaemon/Power"
gboolean
gcm_brightness_set_percentage (GcmBrightness *brightness, guint percentage, GError **error)
@@ -72,7 +72,7 @@ gcm_brightness_set_percentage (GcmBrightness *brightness, guint percentage, GErr
GPM_DBUS_SERVICE,
GPM_DBUS_PATH_BACKLIGHT,
GPM_DBUS_INTERFACE_BACKLIGHT,
- "SetBrightness",
+ "SetPercentage",
args,
NULL,
G_DBUS_CALL_FLAGS_NONE,
@@ -111,7 +111,7 @@ gcm_brightness_get_percentage (GcmBrightness *brightness, guint *percentage, GEr
GPM_DBUS_SERVICE,
GPM_DBUS_PATH_BACKLIGHT,
GPM_DBUS_INTERFACE_BACKLIGHT,
- "GetBrightness",
+ "GetPercentage",
NULL,
G_VARIANT_TYPE ("(u)"),
G_DBUS_CALL_FLAGS_NONE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]