[gnome-color-manager: 15/18] trivial: Use a descriptive title for the auto-edid generated profile
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager: 15/18] trivial: Use a descriptive title for the auto-edid generated profile
- Date: Fri, 8 Oct 2010 16:09:25 +0000 (UTC)
commit 1cac07a72eb60e70ef17935cceece0527baa8c89
Author: Richard Hughes <richard hughsie com>
Date: Fri Oct 8 17:58:54 2010 +0100
trivial: Use a descriptive title for the auto-edid generated profile
src/gcm-device-xrandr.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-device-xrandr.c b/src/gcm-device-xrandr.c
index ceacf33..498baea 100644
--- a/src/gcm-device-xrandr.c
+++ b/src/gcm-device-xrandr.c
@@ -397,6 +397,7 @@ gcm_device_xrandr_generate_profile (GcmDevice *device, GError **error)
{
gboolean ret;
const gchar *data;
+ gchar *title = NULL;
GcmProfile *profile;
GcmDeviceXrandr *device_xrandr = GCM_DEVICE_XRANDR (device);
GcmDeviceXrandrPrivate *priv = device_xrandr->priv;
@@ -405,7 +406,6 @@ gcm_device_xrandr_generate_profile (GcmDevice *device, GError **error)
profile = gcm_profile_new ();
gcm_profile_set_colorspace (profile, 0);
gcm_profile_set_copyright (profile, "No copyright");
- gcm_profile_set_description (profile, "Automatically generated profile for EDID");
gcm_profile_set_kind (profile, GCM_PROFILE_KIND_DISPLAY_DEVICE);
/* get manufacturer */
@@ -420,6 +420,10 @@ gcm_device_xrandr_generate_profile (GcmDevice *device, GError **error)
data = "Unknown monitor";
gcm_profile_set_model (profile, data);
+ /* TRANSLATORS: this is prepended to the device title to let the use know it was generated by us automatically */
+ title = g_strdup_printf ("%s, %s", _("Automatic"), gcm_device_get_title (device));
+ gcm_profile_set_description (profile, title);
+
/* generate a profile from the chroma data */
ret = gcm_profile_create_from_chroma (profile,
gcm_edid_get_gamma (priv->edid),
@@ -434,6 +438,7 @@ gcm_device_xrandr_generate_profile (GcmDevice *device, GError **error)
goto out;
}
out:
+ g_free (title);
return profile;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]