[gnome-color-manager] Add a precision GConf variable to control the time a calibration takes. Fixes half of #605558



commit 1f38e7a56f2c2ec426e59092ca182d7a577a4549
Author: Richard Hughes <richard hughsie com>
Date:   Sun Jan 24 09:56:29 2010 +0000

    Add a precision GConf variable to control the time a calibration takes. Fixes half of #605558

 data/gnome-color-manager.schemas.in |   17 +++++++++++++++++
 src/gcm-utils.h                     |    1 +
 2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/data/gnome-color-manager.schemas.in b/data/gnome-color-manager.schemas.in
index 07b5f29..3351555 100644
--- a/data/gnome-color-manager.schemas.in
+++ b/data/gnome-color-manager.schemas.in
@@ -111,6 +111,23 @@
       </locale>
     </schema>
 
+    <schema>
+      <key>/schemas/apps/gnome-color-manager/calibration_length</key>
+      <applyto>/apps/gnome-color-manager/calibration_length</applyto>
+      <owner>gnome-color-manager</owner>
+      <type>string</type>
+      <default>short</default>
+      <locale name="C">
+        <short>The default calibration length.</short>
+        <long>
+          The length of calibration, as this is proportional to the accuracy.
+          The option 'short' creates a quick profile, 'normal' a regular one,
+          and 'long' takes a really long time, but is more precise and creates
+          a better profile.
+        </long>
+      </locale>
+    </schema>
+
   </schemalist>
 </gconfschemafile>
 
diff --git a/src/gcm-utils.h b/src/gcm-utils.h
index 67a8f79..6b3dac8 100644
--- a/src/gcm-utils.h
+++ b/src/gcm-utils.h
@@ -41,6 +41,7 @@
 #define GCM_SETTINGS_COLORSPACE_RGB		"/apps/gnome-color-manager/colorspace_rgb"
 #define GCM_SETTINGS_COLORSPACE_CMYK		"/apps/gnome-color-manager/colorspace_cmyk"
 #define GCM_SETTINGS_USE_PROFILES_FROM_VOLUMES	"/apps/gnome-color-manager/use_profiles_from_volumes"
+#define GCM_SETTINGS_CALIBRATION_LENGTH		"/apps/gnome-color-manager/calibration_length"
 
 gboolean	 gcm_utils_set_gamma_for_device		(GcmDevice		*device,
 							 GError			**error);



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