Revision: 1161
http://geeqie.svn.sourceforge.net/geeqie/?rev=1161&view=rev
Author: nadvornik
Date: 2008-10-18 08:31:25 +0000 (Sat, 18 Oct 2008)
Log Message:
-----------
no need to validate description, it is in utf8
Modified Paths:
--------------
trunk/src/bar_exif.c
Modified: trunk/src/bar_exif.c
===================================================================
--- trunk/src/bar_exif.c 2008-10-17 22:00:07 UTC (rev 1160)
+++ trunk/src/bar_exif.c 2008-10-18 08:31:25 UTC (rev 1161)
@@ -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);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn