use gimp_any_to_utf8().

2006-11-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: use gimp_any_to_utf8().
This commit is contained in:
Sven Neumann 2006-11-03 14:46:40 +00:00 committed by Sven Neumann
parent e667ce046a
commit c422b2b397
2 changed files with 7 additions and 18 deletions

View file

@ -1,3 +1,7 @@
2006-11-03 Sven Neumann <sven@gimp.org>
* plug-ins/common/lcms.c: use gimp_any_to_utf8().
2006-11-03 Sven Neumann <sven@gimp.org>
* app/dialogs/fade-dialog.c (fade_dialog_new): use "Fade" instead

View file

@ -338,34 +338,19 @@ run (const gchar *name,
static gchar *
lcms_icc_profile_get_name (cmsHPROFILE profile)
{
const gchar *str = cmsTakeProductName (profile);
if (! g_utf8_validate (str, -1, NULL))
return g_strdup (_("(invalid UTF-8 string)"));
return g_strdup (str);
return gimp_any_to_utf8 (cmsTakeProductName (profile), -1, NULL);
}
static gchar *
lcms_icc_profile_get_desc (cmsHPROFILE profile)
{
const gchar *str = cmsTakeProductDesc (profile);
if (! g_utf8_validate (str, -1, NULL))
return g_strdup (_("(invalid UTF-8 string)"));
return g_strdup (str);
return gimp_any_to_utf8 (cmsTakeProductDesc (profile), -1, NULL);
}
static gchar *
lcms_icc_profile_get_info (cmsHPROFILE profile)
{
const gchar *str = cmsTakeProductInfo (profile);
if (! g_utf8_validate (str, -1, NULL))
return g_strdup (_("(invalid UTF-8 string)"));
return g_strdup (str);
return gimp_any_to_utf8 (cmsTakeProductInfo (profile), -1, NULL);
}
static gboolean