[gnome-color-manager] trivial: pick up the cupsICCProfile attribute if it's been set
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: pick up the cupsICCProfile attribute if it's been set
- Date: Thu, 4 Feb 2010 17:14:34 +0000 (UTC)
commit e6688d0973338a575abf275589d8da3ecd80200b
Author: Richard Hughes <richard hughsie com>
Date: Thu Feb 4 16:27:11 2010 +0000
trivial: pick up the cupsICCProfile attribute if it's been set
src/gcm-device-cups.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gcm-device-cups.c b/src/gcm-device-cups.c
index e7f5042..73a2ac7 100644
--- a/src/gcm-device-cups.c
+++ b/src/gcm-device-cups.c
@@ -68,6 +68,7 @@ gcm_device_cups_set_from_dest (GcmDevice *device, http_t *http, cups_dest_t dest
gchar *serial = NULL;
gchar *manufacturer = NULL;
gchar *model = NULL;
+ gchar *profile_filename = NULL;
GcmColorspaceEnum colorspace = GCM_COLORSPACE_ENUM_UNKNOWN;
egg_debug ("name: %s", dest.name);
@@ -111,6 +112,10 @@ gcm_device_cups_set_from_dest (GcmDevice *device, http_t *http, cups_dest_t dest
colorspace = GCM_COLORSPACE_ENUM_CMYK;
else
egg_warning ("colorspace not recognised: %s", value);
+ } else if (g_strcmp0 (keyword, "cupsICCProfile") == 0) {
+ /* FIXME: possibly map from http://localhost:port/profiles/dave.icc to ~/.icc/color/dave.icc */
+ profile_filename = g_strdup (value);
+ egg_warning ("remap %s?", profile_filename);
}
egg_debug ("keyword: %s, value: %s, spec: %s", keyword, value, ppd_file->attrs[i]->spec);
@@ -130,9 +135,11 @@ gcm_device_cups_set_from_dest (GcmDevice *device, http_t *http, cups_dest_t dest
"manufacturer", manufacturer,
"title", title,
"native-device", device_id,
+ "profile-filename", profile_filename,
NULL);
g_free (serial);
+ g_free (profile_filename);
g_free (manufacturer);
g_free (model);
g_free (id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]