diff src/bar_exif.c @ 95:eb9bb29cbd65

Fri Nov 3 11:40:48 2006 John Ellis <johne@verizon.net> * bar_exif.[ch]: Make list of general exif tags available to rest of application. * pan-view.c: Add option to display exif information in info popup. Clean up the info popup text alignment. Make displaying the full size image below the info popup optional (off by default). * pixbuf-renderer.c (pr_source_tile_changed): Guard against width/height less than 1. * pibuf_util.c (pixbuf_draw_layout): Guard against width/height less than 1.
author gqview
date Fri, 03 Nov 2006 16:49:29 +0000
parents 6948407f52a5
children 50fc73e08550
line wrap: on
line diff
--- a/src/bar_exif.c	Thu Nov 02 23:27:03 2006 +0000
+++ b/src/bar_exif.c	Fri Nov 03 16:49:29 2006 +0000
@@ -26,7 +26,7 @@
 
 #define BAR_EXIF_DATA_COLUMN_WIDTH 250
 
-static const gchar *bar_exif_key_list[] = {
+static const gchar *bar_exif_key_list_real[] = {
 	"fCamera",
 	"fDateTime",
 	"fShutterSpeed",
@@ -45,7 +45,8 @@
 	"Copyright"
 };
 
-#define bar_exif_key_count (sizeof(bar_exif_key_list) / sizeof(gchar *))
+const gchar **bar_exif_key_list = bar_exif_key_list_real;
+const gint bar_exif_key_count = (sizeof(bar_exif_key_list_real) / sizeof(gchar *));
 
 
 /*
@@ -134,7 +135,7 @@
 	EXIF_ADVCOL_COUNT
 };
 
-static gchar *bar_exif_validate_text(gchar *text)
+gchar *bar_exif_validate_text(gchar *text)
 {
 	if (text && !g_utf8_validate(text, strlen(text), NULL))
 		{