1 diff -urN nautilus-2.20.0/configure.in nautilus-2.20.0.new/configure.in
2 --- nautilus-2.20.0/configure.in 2007-09-18 08:55:14.000000000 +0200
3 +++ nautilus-2.20.0.new/configure.in 2008-01-04 14:06:18.000000000 +0100
5 m4_define(beagle_minver, 0.0.12)
6 m4_define(tracker_minver, 0.0.1)
7 m4_define(exempi_minver, 1.99.2)
8 +m4_define(exempi_new_api_minver, 1.99.5)
10 dnl 1. If the library code has changed at all since last release, then increment revision.
11 dnl 2. If any interfaces have been added, then increment current and set revision to 0.
13 AC_DEFINE(HAVE_EXEMPI, 1, [Define to enable XMP support])
14 ], [AM_CONDITIONAL(HAVE_EXEMPI, false)])
16 +PKG_CHECK_MODULES(EXEMPI_NEW_API, exempi-2.0 >= exempi_new_api_minver, [
17 + AM_CONDITIONAL(HAVE_EXEMPI_NEW_API, true)
18 + AC_DEFINE(HAVE_EXEMPI_NEW_API, 1, [Define if your Exempi has new API])
19 + ], [AM_CONDITIONAL(HAVE_EXEMPI_NEW_API, false)])
21 AC_SUBST(EXEMPI_CFLAGS)
24 diff -urN nautilus-2.20.0/src/nautilus-image-properties-page.c nautilus-2.20.0.new/src/nautilus-image-properties-page.c
25 --- nautilus-2.20.0/src/nautilus-image-properties-page.c 2007-07-24 11:56:20.000000000 +0200
26 +++ nautilus-2.20.0.new/src/nautilus-image-properties-page.c 2008-01-04 13:51:50.000000000 +0100
30 XmpStringPtr value = xmp_string_new();
31 +#ifdef HAVE_EXEMPI_NEW_API
32 + if(xmp_get_property(xmp, ns, propname, value, &options)) {
34 if(xmp_get_property_and_bits(xmp, ns, propname, value, &options)) {
36 if(XMP_IS_PROP_SIMPLE(options)) {
37 g_string_append_printf(string, "<b>%s:</b> %s\n", descr, xmp_string_cstr(value));