[gnome-color-manager/colord: 35/72] Set the _ICC_PROFILE protocol version in the new colord code
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager/colord: 35/72] Set the _ICC_PROFILE protocol version in the new colord code
- Date: Tue, 8 Mar 2011 11:26:17 +0000 (UTC)
commit cb4456cb7ae8f0b1d59a55f49d9cff27ae59e849
Author: Richard Hughes <richard hughsie com>
Date: Mon Jan 31 23:24:06 2011 +0000
Set the _ICC_PROFILE protocol version in the new colord code
src/gcm-session.c | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-session.c b/src/gcm-session.c
index bf7d9d1..9c7360c 100644
--- a/src/gcm-session.c
+++ b/src/gcm-session.c
@@ -395,7 +395,13 @@ gcm_session_device_assign (CdDevice *device)
error->message);
g_clear_error (&error);
}
- //FIXME: use gcm_x11_screen_remove_protocol_version
+ ret = gcm_x11_screen_remove_protocol_version (x11_screen,
+ &error);
+ if (!ret) {
+ g_warning ("failed to clear output _ICC_PROFILE version: %s",
+ error->message);
+ g_clear_error (&error);
+ }
}
goto out;
}
@@ -414,6 +420,15 @@ gcm_session_device_assign (CdDevice *device)
error->message);
g_clear_error (&error);
}
+ ret = gcm_x11_screen_set_protocol_version (x11_screen,
+ GCM_ICC_PROFILE_IN_X_VERSION_MAJOR,
+ GCM_ICC_PROFILE_IN_X_VERSION_MINOR,
+ &error);
+ if (!ret) {
+ g_warning ("failed to set screen _ICC_PROFILE: %s",
+ error->message);
+ g_clear_error (&error);
+ }
}
ret = gcm_x11_output_set_profile (output,
filename,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]