Mercurial > geeqie.yaz
changeset 651:ac87e9688188
Comparing tag id is not sufficient, check the tag name too.
author | zas_ |
---|---|
date | Tue, 13 May 2008 14:35:51 +0000 |
parents | 02e2c135ee0c |
children | 9bcfd6d7a902 |
files | src/bar_info.c |
diffstat | 1 files changed, 12 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/bar_info.c Tue May 13 11:58:47 2008 +0000 +++ b/src/bar_info.c Tue May 13 14:35:51 2008 +0000 @@ -325,15 +325,21 @@ guint tag; tag = exif_item_get_tag_id(item); - if (tag == 0x0019) /* Iptc.Application2.Keywords */ + if (tag == 0x0019) { - gchar *kw; + gchar *tag_name = exif_item_get_tag_name(item); + + if (strcmp(tag_name, "Iptc.Application2.Keywords") == 0) + { + gchar *kw; - kw = exif_item_get_data_as_text(item); - kw = utf8_validate_or_convert(kw); + kw = exif_item_get_data_as_text(item); + kw = utf8_validate_or_convert(kw); - if (!kw) continue; - *keywords = g_list_append(*keywords, (gpointer) kw); + if (!kw) continue; + *keywords = g_list_append(*keywords, (gpointer) kw); + } + g_free(tag_name); } } }