]> www.fi.muni.cz Git - evince.git/commitdiff
[build] Fix build with glib < 2.22.0
authorChristian Spurk <mail@code.chriki.de>
Sun, 1 Nov 2009 18:59:28 +0000 (19:59 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 8 Nov 2009 14:22:02 +0000 (15:22 +0100)
Fixes bgo#600338.

shell/ev-metadata.c

index a8fde318e3afd20c1ff1039ab6b0abe81fac544e..4db4a0089e6c13267eb69dc0e7ee6fba7ed994fc 100644 (file)
@@ -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++) {