Index: src/eog-properties-dialog.c
===================================================================
--- src/eog-properties-dialog.c	(revisión: 4310)
+++ src/eog-properties-dialog.c	(copia de trabajo)
@@ -30,7 +30,6 @@
 #include "eog-thumb-view.h"
 
 #if HAVE_EXIF
-#include "eog-exif-details.h"
 #include "eog-exif-util.h"
 #endif
 
@@ -50,6 +49,10 @@
 #define HAVE_METADATA 1
 #endif
 
+#if HAVE_METADATA
+#include "eog-exif-details.h"
+#endif
+
 #define EOG_PROPERTIES_DIALOG_GET_PRIVATE(object) \
 	(G_TYPE_INSTANCE_GET_PRIVATE ((object), EOG_TYPE_PROPERTIES_DIALOG, EogPropertiesDialogPrivate))
 
@@ -82,7 +85,6 @@ struct _EogPropertiesDialogPrivate {
 	GtkWidget      *created_label;
 	GtkWidget      *modified_label;
 #ifdef HAVE_EXIF
-	GtkWidget      *exif_box;
 	GtkWidget      *exif_aperture_label;
 	GtkWidget      *exif_exposure_label;
 	GtkWidget      *exif_focal_label;
@@ -101,6 +103,7 @@ struct _EogPropertiesDialogPrivate {
 	GtkWidget      *xmp_details;
 #endif
 #if HAVE_METADATA
+	GtkWidget      *exif_box;
 	GtkWidget      *exif_details_expander;
 	GtkWidget      *exif_details;
 #endif
@@ -270,9 +273,12 @@ pd_update_metadata_tab (EogPropertiesDia
 		}
 
 		return;
-	} else if (!GTK_WIDGET_VISIBLE (priv->exif_box)) {
+	}
+#if HAVE_METADATA
+	else if (!GTK_WIDGET_VISIBLE (priv->exif_box)) {
 		gtk_widget_show_all (priv->exif_box);
 	}
+#endif
 
 #if HAVE_EXIF
 	exif_data = (ExifData *) eog_image_get_exif_info (image);
@@ -534,7 +540,6 @@ eog_properties_dialog_init (EogPropertie
 			         "created_label", &priv->created_label,
 			         "modified_label", &priv->modified_label,
 #ifdef HAVE_EXIF
-			         "exif_box", &priv->exif_box,
 			         "exif_aperture_label", &priv->exif_aperture_label,
 			         "exif_exposure_label", &priv->exif_exposure_label,
 			         "exif_focal_label", &priv->exif_focal_label,
@@ -543,7 +548,6 @@ eog_properties_dialog_init (EogPropertie
 			         "exif_metering_label", &priv->exif_metering_label,
 			         "exif_model_label", &priv->exif_model_label,
 			         "exif_date_label", &priv->exif_date_label,
-			         "exif_details_expander", &priv->exif_details_expander,
 #endif
 #ifdef HAVE_EXEMPI
 				 "xmp_location_label", &priv->xmp_location_label,
@@ -555,7 +559,10 @@ eog_properties_dialog_init (EogPropertie
 				 "xmp_box", &xmp_box,
 				 "xmp_box_label", &xmp_box_label,
 #endif
-
+#ifdef HAVE_METADATA
+			         "exif_box", &priv->exif_box,
+				 "exif_details_expander", &priv->exif_details_expander,
+#endif
 			         NULL);
 
 	g_signal_connect (dlg,
Index: src/eog-exif-details.c
===================================================================
--- src/eog-exif-details.c	(revisión: 4310)
+++ src/eog-exif-details.c	(copia de trabajo)
@@ -84,6 +84,7 @@ typedef struct {
 	ExifCategory category;
 } ExifTagCategory;
 
+#ifdef HAVE_EXIF
 static ExifTagCategory exif_tag_category_map[] = {
 	{ EXIF_TAG_INTEROPERABILITY_INDEX,    EXIF_CATEGORY_CAMERA},
 	{ EXIF_TAG_INTEROPERABILITY_VERSION,  EXIF_CATEGORY_CAMERA},
@@ -190,6 +191,7 @@ static ExifTagCategory exif_tag_category
 	{ EXIF_TAG_IMAGE_UNIQUE_ID	, EXIF_CATEGORY_IMAGE_DATA},
 	{ -1, -1 }
 };
+#endif
 
 #define MODEL_COLUMN_ATTRIBUTE 0
 #define MODEL_COLUMN_VALUE     1
@@ -276,6 +278,7 @@ eog_exif_details_class_init (EogExifDeta
 	g_type_class_add_private (object_class, sizeof (EogExifDetailsPrivate));
 }
 
+#ifdef HAVE_EXIF
 static ExifCategory
 get_exif_category (ExifEntry *entry)
 {
@@ -291,6 +294,7 @@ get_exif_category (ExifEntry *entry)
 
 	return cat;
 }
+#endif
 
 static char*
 set_row_data (GtkTreeStore *store, char *path, char *parent, const char *attribute, const char *value)
@@ -343,6 +347,7 @@ set_row_data (GtkTreeStore *store, char 
 	return path;
 }
 
+#ifdef HAVE_EXIF
 static void 
 exif_entry_cb (ExifEntry *entry, gpointer data)
 {
@@ -406,12 +411,15 @@ exif_entry_cb (ExifEntry *entry, gpointe
 		}
 	}
 }
+#endif
 
+#ifdef HAVE_EXIF
 static void
 exif_content_cb (ExifContent *content, gpointer data)
 {
 	exif_content_foreach_entry (content, exif_entry_cb, data);
 }
+#endif
 
 GtkWidget *
 eog_exif_details_new ()
@@ -447,6 +455,7 @@ eog_exif_details_reset (EogExifDetails *
 	}
 }
 
+#ifdef HAVE_EXIF
 void
 eog_exif_details_update (EogExifDetails *exif_details, ExifData *data)
 {
@@ -461,7 +470,7 @@ eog_exif_details_update (EogExifDetails 
 		exif_data_foreach_content (data, exif_content_cb, exif_details);
 	}
 }
-
+#endif HAVE_EXIF
 
 #ifdef HAVE_EXEMPI
 typedef struct {
