[gnome-color-manager] Write a profile ID for automatically generated profiles
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] Write a profile ID for automatically generated profiles
- Date: Fri, 8 Apr 2011 10:54:17 +0000 (UTC)
commit 028459104be299a564bc5a2c60d1e99b2f829acc
Author: Richard Hughes <richard hughsie com>
Date: Fri Apr 8 11:52:04 2011 +0100
Write a profile ID for automatically generated profiles
src/gcm-profile.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-profile.c b/src/gcm-profile.c
index 71c07d5..9c43d97 100644
--- a/src/gcm-profile.c
+++ b/src/gcm-profile.c
@@ -1070,6 +1070,13 @@ gcm_profile_save (GcmProfile *profile, const gchar *filename, GError **error)
}
}
+ /* write profile id */
+ ret = cmsMD5computeID (priv->lcms_profile);
+ if (!ret) {
+ g_set_error_literal (error, 1, 0, "failed to write profile id");
+ goto out;
+ }
+
/* save, TODO: get error */
cmsSaveProfileToFile (priv->lcms_profile, filename);
ret = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]