[gnome-settings-daemon] color: If the EDID gamma size is zero do not report a warning



commit 6c593cc9ab2f9b0e1576bcbc099715cfade5dc29
Author: Richard Hughes <richard hughsie com>
Date:   Thu Apr 25 16:51:49 2013 +0100

    color: If the EDID gamma size is zero do not report a warning
    
    If the laptop is docked some BIOSes report a fake EDID.
    
    Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=698849

 plugins/color/gsd-color-manager.c |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index ef0d4b4..e28ad58 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -489,10 +489,7 @@ gcm_session_device_set_gamma (GnomeRROutput *output,
         /* create a lookup table */
         size = gnome_rr_output_get_gamma_size (output);
         if (size == 0) {
-                g_set_error_literal (error,
-                                     GSD_COLOR_MANAGER_ERROR,
-                                     GSD_COLOR_MANAGER_ERROR_FAILED,
-                                     "gamma size is zero");
+                ret = TRUE;
                 goto out;
         }
         clut = gcm_session_generate_vcgt (profile, size);
@@ -530,11 +527,7 @@ gcm_session_device_reset_gamma (GnomeRROutput *output,
         clut = g_ptr_array_new_with_free_func (g_free);
         size = gnome_rr_output_get_gamma_size (output);
         if (size == 0) {
-                ret = FALSE;
-                g_set_error_literal (error,
-                                     GSD_COLOR_MANAGER_ERROR,
-                                     GSD_COLOR_MANAGER_ERROR_FAILED,
-                                     "gamma size is zero");
+                ret = TRUE;
                 goto out;
         }
         for (i = 0; i < size; i++) {


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