g_type_init is deprecated