[gnome-control-center] color: Set the target gamma when calibrating
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] color: Set the target gamma when calibrating
- Date: Wed, 23 Jan 2013 13:50:52 +0000 (UTC)
commit 69509481427589c4f0173041cb98dd81a271ea1c
Author: Richard Hughes <richard hughsie com>
Date: Fri Jan 18 16:08:05 2013 +0000
color: Set the target gamma when calibrating
panels/color/cc-color-calibrate.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/panels/color/cc-color-calibrate.c b/panels/color/cc-color-calibrate.c
index 41e0a3c..07e9157 100644
--- a/panels/color/cc-color-calibrate.c
+++ b/panels/color/cc-color-calibrate.c
@@ -53,6 +53,7 @@ struct _CcColorCalibratePrivate
guint gamma_size;
CdProfileQuality quality;
guint target_whitepoint; /* in Kelvin */
+ gdouble target_gamma;
gint inhibit_fd;
};
@@ -919,6 +920,10 @@ cc_color_calibrate_start (CcColorCalibrate *calibrate,
g_variant_new_uint32 (priv->target_whitepoint));
g_variant_builder_add (&builder,
"{sv}",
+ "Gamma",
+ g_variant_new_double (priv->target_gamma));
+ g_variant_builder_add (&builder,
+ "{sv}",
"Title",
g_variant_new_string (priv->title));
g_variant_builder_add (&builder,
@@ -1052,6 +1057,7 @@ cc_color_calibrate_init (CcColorCalibrate *calibrate)
/* get defaults */
settings = g_settings_new (COLORD_SETTINGS_SCHEMA);
calibrate->priv->target_whitepoint = g_settings_get_int (settings, "display-whitepoint");
+ calibrate->priv->target_gamma = g_settings_get_double (settings, "display-gamma");
g_object_unref (settings);
/* connect to buttons */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]