]> git.pld-linux.org Git - packages/nautilus.git/blob - nautilus-exempi-new-api.patch
- adds support for new exempi API
[packages/nautilus.git] / nautilus-exempi-new-api.patch
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
4 @@ -22,6 +22,7 @@
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)
9  
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.
12 @@ -266,6 +267,11 @@
13                   AC_DEFINE(HAVE_EXEMPI, 1, [Define to enable XMP support])
14                   ], [AM_CONDITIONAL(HAVE_EXEMPI, false)])
15  
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)])
20 +
21  AC_SUBST(EXEMPI_CFLAGS)
22  AC_SUBST(EXEMPI_LIBS)
23  
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
27 @@ -266,7 +266,11 @@
28  {
29         uint32_t options;
30         XmpStringPtr  value = xmp_string_new();
31 +#ifdef HAVE_EXEMPI_NEW_API
32 +       if(xmp_get_property(xmp, ns, propname, value, &options)) {
33 +#else
34         if(xmp_get_property_and_bits(xmp, ns, propname, value, &options)) {
35 +#endif
36                 if(XMP_IS_PROP_SIMPLE(options)) {
37                         g_string_append_printf(string, "<b>%s:</b> %s\n", descr, xmp_string_cstr(value));
38                 }
This page took 0.101126 seconds and 3 git commands to generate.