[gnome-settings-daemon] color: Set the framework creator metadata on newly created profiles



commit 5316094adebf3645a19cd7c482599374fa340d0c
Author: Richard Hughes <richard hughsie com>
Date:   Mon Jun 13 15:36:57 2011 +0100

    color: Set the framework creator metadata on newly created profiles

 plugins/color/gsd-color-manager.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index dd58d19..19795c3 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -626,6 +626,17 @@ gcm_apply_create_icc_profile_for_edid (GsdColorManager *manager,
         /* just create a new dict */
         dict = cmsDictAlloc (NULL);
 
+        /* set the framework creator metadata */
+        _cmsDictAddEntryAscii (dict,
+                               CD_PROFILE_METADATA_CMF_PRODUCT,
+                               PACKAGE_NAME);
+        _cmsDictAddEntryAscii (dict,
+                               CD_PROFILE_METADATA_CMF_BINARY,
+                               PACKAGE_NAME);
+        _cmsDictAddEntryAscii (dict,
+                               CD_PROFILE_METADATA_CMF_VERSION,
+                               PACKAGE_VERSION);
+
         /* set the data source so we don't ever prompt the user to
          * recalibrate (as the EDID data won't have changed) */
         _cmsDictAddEntryAscii (dict,



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