Mercurial > geeqie
changeset 1066:d0add22edb45
no need to validate description, it is in utf8
author | nadvornik |
---|---|
date | Sat, 18 Oct 2008 08:31:25 +0000 |
parents | 6a8402e0eaea |
children | 78007efd1140 |
files | src/bar_exif.c |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/bar_exif.c Fri Oct 17 22:00:07 2008 +0000 +++ b/src/bar_exif.c Sat Oct 18 08:31:25 2008 +0000 @@ -297,7 +297,6 @@ const gchar *format; gchar *elements; gchar *description; - gchar *utf8_description; tag = g_strdup_printf("0x%04x", exif_item_get_tag_id(item)); tag_name = exif_item_get_tag_name(item); @@ -307,9 +306,7 @@ g_free(text); elements = g_strdup_printf("%d", exif_item_get_elements(item)); description = exif_item_get_description(item); - if (!description) description = g_strdup(""); - utf8_description = utf8_validate_or_convert(description); - g_free(description); + if (!description) description = g_strdup(tag_name); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, @@ -319,11 +316,11 @@ EXIF_ADVCOL_VALUE, utf8_text, EXIF_ADVCOL_FORMAT, format, EXIF_ADVCOL_ELEMENTS, elements, - EXIF_ADVCOL_DESCRIPTION, utf8_description, -1); + EXIF_ADVCOL_DESCRIPTION, description, -1); g_free(tag); g_free(utf8_text); g_free(elements); - g_free(utf8_description); + g_free(description); g_free(tag_name); item = exif_get_next_item(exif); }