[gnome-color-manager] Add back the display setup in the calibrate routine as this was not added in the refactor



commit cbc474244f2645043a7e7be9feb0bbda17191b42
Author: Richard Hughes <richard hughsie com>
Date:   Wed Nov 25 17:47:13 2009 +0000

    Add back the display setup in the calibrate routine as this was not added in the refactor

 src/gcm-prefs.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index 49d2dcc..1e9ce9f 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -147,6 +147,15 @@ gcm_prefs_calibrate_display (GcmCalibrate *calib)
 		      "manufacturer", manufacturer,
 		      NULL);
 
+	/* step 0 */
+	ret = gcm_calibrate_task (calib, GCM_CALIBRATE_TASK_DISPLAY_SETUP, &error);
+	if (!ret) {
+		egg_warning ("failed to calibrate: %s", error->message);
+		g_error_free (error);
+		goto finish_calibrate;
+	}
+
+
 	/* if we are an internal LCD, we need to set the brightness to maximum */
 	ret = gcm_utils_output_is_lcd_internal (output_name);
 	if (ret) {



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