[gnome-settings-daemon] color: Actually write the profile metadata we lovingly created



commit 68b5ab01641bae238d73f965d40097d313685b4a
Author: Richard Hughes <richard hughsie com>
Date:   Mon Jun 13 16:08:39 2011 +0100

    color: Actually write the profile metadata we lovingly created

 plugins/color/gsd-color-manager.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index e263b0e..0b1c882 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -660,6 +660,16 @@ gcm_apply_create_icc_profile_for_edid (GsdColorManager *manager,
         data = gcm_edid_get_vendor_name (edid);
         if (data != NULL)
                 _cmsDictAddEntryAscii (dict, "EDID_manufacturer", data);
+
+        /* write new tag */
+        ret = cmsWriteTag (lcms_profile, cmsSigMetaTag, dict);
+        if (!ret) {
+                g_set_error_literal (error,
+                                     GSD_COLOR_MANAGER_ERROR,
+                                     GSD_COLOR_MANAGER_ERROR_FAILED,
+                                     "failed to write profile metadata");
+                goto out;
+        }
 #endif /* HAVE_NEW_LCMS */
 
         /* write profile id */



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