[gnome-color-manager] Fix up a few typos now exposed in the new GSettings code



commit 6ab46360e14b79136e7230f557c24d0370ca130e
Author: Richard Hughes <richard hughsie com>
Date:   Thu May 20 16:30:59 2010 +0100

    Fix up a few typos now exposed in the new GSettings code

 src/gcm-device.c |    2 +-
 src/gcm-utils.h  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcm-device.c b/src/gcm-device.c
index 5f411ac..8375c9c 100644
--- a/src/gcm-device.c
+++ b/src/gcm-device.c
@@ -576,7 +576,7 @@ gcm_device_load (GcmDevice *device, GError **error)
 		priv->manufacturer = g_key_file_get_string (file, priv->id, "manufacturer", NULL);
 	priv->gamma = g_key_file_get_double (file, priv->id, "gamma", &error_local);
 	if (error_local != NULL) {
-		priv->gamma = g_settings_get_double (priv->settings, "default_gamma");
+		priv->gamma = g_settings_get_double (priv->settings, GCM_SETTINGS_DEFAULT_GAMMA);
 		if (priv->gamma < 0.1f)
 			priv->gamma = 1.0f;
 		g_clear_error (&error_local);
diff --git a/src/gcm-utils.h b/src/gcm-utils.h
index edf9cd6..5321230 100644
--- a/src/gcm-utils.h
+++ b/src/gcm-utils.h
@@ -32,7 +32,7 @@
 #define GCM_STOCK_ICON					"gnome-color-manager"
 #define GCM_PROFILE_PATH				"/.color/icc"
 
-#define GCM_SETTINGS_SCHEMA				"org.gnome.ColorManager"
+#define GCM_SETTINGS_SCHEMA				"org.gnome.color-manager"
 #define GCM_SETTINGS_DEFAULT_GAMMA			"default-gamma"
 #define GCM_SETTINGS_GLOBAL_DISPLAY_CORRECTION		"global-display-correction"
 #define GCM_SETTINGS_SET_ICC_PROFILE_ATOM		"set-icc-profile-atom"



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