GNOME Bugzilla – Bug 603727
Remove deprecated Glib symbols
Last modified: 2015-02-07 16:53:32 UTC
Created attachment 149031 [details] [review] g_mapped_file_free See http://live.gnome.org/GnomeGoals/RemoveDeprecatedSymbols/Glib for more info
Created attachment 149032 [details] [review] Correct patch
Created attachment 149033 [details] [review] g_mapped_file_free Damn, I'm sorry. This is the correct patch
Review of attachment 149033 [details] [review]: ::: girepository/Makefile.am @@ +10,3 @@ libgirepository_1_0_la_SOURCES = \ + glib-compat.h \ Keep this sorted alphabetically ::: girepository/glib-compat.h @@ +20,3 @@ + * This library is free software; you can redistribute it and/or + * Copyright (C) 2009 Javier Jardón +/* GObject introspection: Compatibility definitions We do want to use this for 2.24 etc, instead of just only on 2.22.
Created attachment 149035 [details] [review] g_mapped_file_free.v2 I've reordered the files. Also, I think you can use the header for glib versions >= 2.22: GLIB_CHECK_VERSION returns TRUE if the version of the GLib header files is the same as or newer than the passed-in version.
Comment on attachment 149035 [details] [review] g_mapped_file_free.v2 This patch is missing glib-compat.h again.
Created attachment 149083 [details] [review] g_mapped_file_free.v3
The following fix has been pushed: a6a9954 Substitute deprecated Glib symbol: g_mapped_file_free
Created attachment 149762 [details] [review] Substitute deprecated Glib symbol: g_mapped_file_free glib-compat.h file created to use g_mapped_file_unref only if glib >= 2.22 is available
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]