UNITY: Call g_type_init only with GLib < 2.36

With GLib >= 2.36 g_type_init() is deprecated and only throws an ugly
warning
This commit is contained in:
Tobia Tesan 2014-10-05 17:05:08 +02:00
parent 2f4f7d480e
commit fee66db83d

View File

@ -33,7 +33,13 @@
#include <unity.h>
UnityTaskbarManager::UnityTaskbarManager() {
#if GLIB_CHECK_VERSION(2, 36, 0) == FALSE
/*
* Glib version is < 2.36.0, it still needs g_type_init(),
* deprecated in later versions
*/
g_type_init();
#endif
_loop = g_main_loop_new(NULL, FALSE);