mirror of
https://github.com/brl/mutter.git
synced 2025-01-11 12:12:25 +00:00
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:
parent
57956461dc
commit
1f3e99f886
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user