[gnome-control-center] color: Show 'Uncalibrated' when a device has a test profile assigned



commit 5f6b8f0da94e0ddc09224a0a3c32d0eb7bf52ff2
Author: Richard Hughes <richard hughsie com>
Date:   Thu Oct 13 16:40:29 2011 +0100

    color: Show 'Uncalibrated' when a device has a test profile assigned

 panels/color/cc-color-panel.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index 9dba50e..ed6dfa1 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -1621,6 +1621,12 @@ gcm_prefs_device_set_model_by_iter (CcColorPanel *prefs, CdDevice *device, GtkTr
 
   /* yay! */
   status = gcm_prefs_get_profile_age_as_string (profile);
+  if (status == NULL)
+    {
+      status = g_string_new (_("Uncalibrated"));
+      g_string_prepend (status, "<span foreground='gray'><i>");
+      g_string_append (status, "</i></span>");
+    }
 
   /* greater than the calibration threshold for the device type */
   age = cd_profile_get_age (profile);



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