[evince] [build] Fix build with glib < 2.22.0
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evince] [build] Fix build with glib < 2.22.0
- Date: Sun, 8 Nov 2009 14:22:19 +0000 (UTC)
commit 03a19fb7894f544243abcf916eebc628f8e780b2
Author: Christian Spurk <mail code chriki de>
Date: Sun Nov 1 19:59:28 2009 +0100
[build] Fix build with glib < 2.22.0
Fixes bgo#600338.
shell/ev-metadata.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/shell/ev-metadata.c b/shell/ev-metadata.c
index a8fde31..4db4a00 100644
--- a/shell/ev-metadata.c
+++ b/shell/ev-metadata.c
@@ -89,11 +89,13 @@ ev_metadata_load (EvMetadata *metadata)
return;
}
+#if GLIB_CHECK_VERSION(2,22,0)
if (!g_file_info_has_namespace (info, "metadata")) {
g_object_unref (info);
return;
}
+#endif
attrs = g_file_info_list_attributes (info, "metadata");
for (i = 0; attrs[i]; i++) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]