[gnome-settings-daemon] color: Use new D-Bus name defines



commit bc9c69667c10bf180d2712103ee8699937417193
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Dec 19 16:00:53 2012 +0100

    color: Use new D-Bus name defines

 plugins/color/gsd-color-manager.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index 465a36d..014b1f5 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -32,6 +32,7 @@
 #define GNOME_DESKTOP_USE_UNSTABLE_API
 #include <libgnome-desktop/gnome-rr.h>
 
+#include "gnome-settings-plugin.h"
 #include "gnome-settings-profile.h"
 #include "gnome-settings-session.h"
 #include "gsd-color-manager.h"
@@ -1038,9 +1039,8 @@ gcm_session_use_output_profile_for_screen (GsdColorManager *manager,
 #define CD_PROFILE_METADATA_SCREEN_BRIGHTNESS		"SCREEN_brightness"
 #endif
 
-#define GSD_DBUS_SERVICE		"org.gnome.SettingsDaemon"
-#define GSD_DBUS_INTERFACE_POWER_SCREEN	"org.gnome.SettingsDaemon.Power.Screen"
-#define GSD_DBUS_PATH_POWER		"/org/gnome/SettingsDaemon/Power"
+#define GSD_DBUS_INTERFACE_POWER_SCREEN	GSD_DBUS_BASE_INTERFACE ".Power.Screen"
+#define GSD_DBUS_PATH_POWER		GSD_DBUS_PATH "/Power"
 
 static void
 gcm_session_set_output_percentage_cb (GObject *source_object,
@@ -1072,7 +1072,7 @@ gcm_session_set_output_percentage (guint percentage)
         if (connection == NULL)
                 return;
         g_dbus_connection_call (connection,
-                                GSD_DBUS_SERVICE,
+                                GSD_DBUS_NAME,
                                 GSD_DBUS_PATH_POWER,
                                 GSD_DBUS_INTERFACE_POWER_SCREEN,
                                 "SetPercentage",



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