gtype: guard uses of new fundamental type check
authorRyan Lortie <desrt@desrt.ca>
Fri, 6 Jun 2014 14:45:51 +0000 (10:45 -0400)
committerRyan Lortie <desrt@desrt.ca>
Fri, 6 Jun 2014 14:49:29 +0000 (10:49 -0400)
commitd558e87c65517e3646f3b8ebc8f11448e25ccbf2
treed802901bf473f9e16556898c415fa08be9b0a7a9
parent0208861a13afc30964fb4f409525fa1cdb544cf4
gtype: guard uses of new fundamental type check

g_type_is_fundamentally_a (see bug 730984) is a new API/ABI and is
marked with a version macro.  We should therefore avoid its
unconditional use from G_IS_OBJECT() and G_IS_PARAM_SPEC() which are
APIs that have been around for a long time.

This prevents deprecation warnings from being emitted when these
functions are used with an older GLIB_VERSION_MAX_ALLOWED and also
prevents linking to the new ABI in that case (so that it's possible to
use the resulting binary with an older version of GLib).

https://bugzilla.gnome.org/show_bug.cgi?id=731335
gobject/gobject.h
gobject/gparam.h