[gnome-settings-daemon] color: Do not prefix the EDID profile title with 'Default'



commit ba3e1bda3ef5fc6f2c66eaf8d5c871cb70dd8cf0
Author: Richard Hughes <richard hughsie com>
Date:   Thu Oct 13 17:11:25 2011 +0100

    color: Do not prefix the EDID profile title with 'Default'
    
    We want to use a different prefix in different tools, and we already know it's
    an EDID profile from the DATA_source metadata entry of 'edid'.
    
    Note: don't drag this into gnome-3-2, as the control center version will not
    look correct without the matching fix.

 plugins/color/gsd-color-manager.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index 979329a..17b4662 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -546,7 +546,6 @@ gcm_apply_create_icc_profile_for_edid (GsdColorManager *manager,
         cmsToneCurve *transfer_curve[3] = { NULL, NULL, NULL };
         const gchar *data;
         gboolean ret = FALSE;
-        gchar *title = NULL;
         gfloat localgamma;
 #ifdef HAVE_NEW_LCMS
         cmsHANDLE dict = NULL;
@@ -623,12 +622,9 @@ gcm_apply_create_icc_profile_for_edid (GsdColorManager *manager,
         }
 
         /* write title */
-        title = g_strdup_printf ("%s, %s",
-                                 _("Default"),
-                                 data);
         ret = _cmsWriteTagTextAscii (lcms_profile,
                                      cmsSigProfileDescriptionTag,
-                                     title);
+                                     data);
         if (!ret) {
                 g_set_error_literal (error, GSD_COLOR_MANAGER_ERROR, GSD_COLOR_MANAGER_ERROR_FAILED, "failed to write description");
                 goto out;
@@ -712,7 +708,6 @@ gcm_apply_create_icc_profile_for_edid (GsdColorManager *manager,
         cmsSaveProfileToFile (lcms_profile, filename);
         ret = TRUE;
 out:
-        g_free (title);
 #ifdef HAVE_NEW_LCMS
         if (dict != NULL)
                 cmsDictFree (dict);



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