[gnome-settings-daemon] color: Fix occasional high load on login



commit f5e8a005b111eac19743c5cb4005b47474117334
Author: Richard Hughes <richard hughsie com>
Date:   Fri Apr 26 11:15:17 2013 +0100

    color: Fix occasional high load on login
    
    Load the ICC profile metadata if we are using cd_icc_get_metadata_item()
    
    Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=698479

 plugins/color/gsd-color-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index 72902b3..2e11945 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -783,7 +783,7 @@ gcm_session_check_profile_device_md (GFile *file)
         gboolean ret;
 
         icc = cd_icc_new ();
-        ret = cd_icc_load_file (icc, file, CD_ICC_LOAD_FLAGS_NONE, NULL, NULL);
+        ret = cd_icc_load_file (icc, file, CD_ICC_LOAD_FLAGS_METADATA, NULL, NULL);
         if (!ret)
                 goto out;
         ret = cd_icc_get_metadata_item (icc, CD_PROFILE_METADATA_MAPPING_DEVICE_ID) != NULL;


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