1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
diff -ur nautilus-2.8.0/acconfig.h nautilus-2.8.0-newpatch/acconfig.h
--- nautilus-2.8.0/acconfig.h 2003-10-14 23:28:25.000000000 +0800
+++ nautilus-2.8.0-newpatch/acconfig.h 2004-11-11 17:02:43.170940312 +0800
@@ -23,3 +23,4 @@
#define HAVE_GTK_MULTIHEAD /* needed for egg-screen-exec functions */
#undef HAVE_STARTUP_NOTIFICATION
#undef HAVE_EXIF
+#undef HAVE_OLD_EXIF
diff -ur nautilus-2.8.0/components/image_properties/nautilus-image-properties-view.c nautilus-2.8.0-newpatch/components/image_properties/nautilus-image-properties-view.c
--- nautilus-2.8.0/components/image_properties/nautilus-image-properties-view.c 2004-03-09 19:23:37.000000000 +0800
+++ nautilus-2.8.0-newpatch/components/image_properties/nautilus-image-properties-view.c 2004-11-11 17:02:43.171940160 +0800
@@ -124,13 +124,20 @@
exif_content_callback (ExifContent *content, gpointer data)
{
struct ExifAttribute *attribute;
+#if !HAVE_OLD_EXIF
+ char b[1024];
+#endif
attribute = (struct ExifAttribute *)data;
if (attribute->found) {
return;
}
+#ifdef HAVE_OLD_EXIF
attribute->value = g_strdup (exif_content_get_value (content, attribute->tag));
+#else
+ attribute->value = g_strdup (exif_content_get_value (content, attribute->tag, b, sizeof(b)));
+#endif
if (attribute->value != NULL) {
attribute->found = TRUE;
}
diff -ur nautilus-2.8.0/configure.in nautilus-2.8.0-newpatch/configure.in
--- nautilus-2.8.0/configure.in 2004-09-13 16:45:08.000000000 +0800
+++ nautilus-2.8.0-newpatch/configure.in 2004-11-11 17:03:13.662304920 +0800
@@ -228,11 +228,19 @@
AC_MSG_CHECKING(for libExif)
-PKG_CHECK_MODULES(EXIF, libexif >= $EXIF_REQUIRED, have_exif=yes, have_exif=no)
-if test "x$have_exif" = "xyes"; then
- AC_DEFINE(HAVE_EXIF,1)
- AC_SUBST(EXIF_CFLAGS)
- AC_SUBST(EXIF_LIBS)
+PKG_CHECK_MODULES(EXIF, libexif > 0.5.12, have_new_exif=yes, have_new_exif=no)
+if test "x$have_new_exif" = "xyes"; then
+ AC_DEFINE(HAVE_EXIF,1)
+ AC_SUBST(EXIF_CFLAGS)
+ AC_SUBST(EXIF_LIBS)
+else
+ PKG_CHECK_MODULES(EXIF, libexif = 0.5.12, have_old_exif=yes, have_old_exif=no)
+ if test "x$have_old_exif" = "xyes"; then
+ AC_DEFINE(HAVE_EXIF,1)
+ AC_DEFINE(HAVE_OLD_EXIF,1)
+ AC_SUBST(EXIF_CFLAGS)
+ AC_SUBST(EXIF_LIBS)
+ fi
fi
dnl ==========================================================================
|