Put g_type_init() under a version check

GLib 2.36 will deprecate g_type_init() in favour of automatic
initialization through a constructor function. We need to add the
version check to avoid a compiler warning.
This commit is contained in:
Emmanuele Bassi 2012-12-15 18:44:26 +00:00
parent 57956461dc
commit 1f3e99f886

View File

@ -2835,8 +2835,10 @@ clutter_base_init (void)
bindtextdomain (GETTEXT_PACKAGE, CLUTTER_LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#if !GLIB_CHECK_VERSION (2, 35, 1)
/* initialise GLib type system */
g_type_init ();
#endif
/* initialise the Big Clutter Lock™ if necessary */
clutter_threads_init_default ();