Initialize GLib type system when necessary

With 2.36 it became deprecated, as the type system is initialized
automatically. Before that version, just call g_type_init()
from gswe_init()
This commit is contained in:
Gergely Polonkai 2013-10-05 02:11:12 +02:00
parent dd803b09f2
commit 695f5b96ae

View File

@ -119,6 +119,11 @@ gswe_init(void)
GsweAspectInfo *aspect_info;
GsweAntiscionAxisInfo *antiscion_axis_info;
/* Before 2.34, g_type_init() must have been called. Let's do it! */
#if !GLIB_CHECK_VERSION(2, 36, 0)
g_type_init();
#endif
if (gswe_initialized) {
return;
}