diff src/pan-view.c @ 645:b50deb0f9968

Rename bar_exif_validate_text() to utf8_validate_or_convert() and move it to main.[ch].
author zas_
date Mon, 12 May 2008 23:21:35 +0000
parents b7e99bfeadc9
children e34c1002e553
line wrap: on
line diff
--- a/src/pan-view.c	Mon May 12 23:00:04 2008 +0000
+++ b/src/pan-view.c	Mon May 12 23:21:35 2008 +0000
@@ -1448,7 +1448,7 @@
 		if (ExifUIList[i].current == EXIF_UI_OFF) continue;
 
 		text = exif_get_data_as_text(exif, ExifUIList[i].key);
-		text = bar_exif_validate_text(text);
+		text = utf8_validate_or_convert(text);
 		if (ExifUIList[i].current == EXIF_UI_IFSET && (!text || !*text))
 			{
 			if (text) g_free(text);
@@ -1474,7 +1474,7 @@
 
 		label = g_strdup_printf("%s:", name);
 		text = exif_get_data_as_text(exif, name);
-		text = bar_exif_validate_text(text);
+		text = utf8_validate_or_convert(text);
 		pan_text_alignment_add(ta, label, text);
 		g_free(label);
 		g_free(text);