UNITY: Check for GLib version at runtime
g_type_init() is deprecated since 2.36
This commit is contained in:
parent
e96cba8bf3
commit
2ea3ae9c57
1 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,9 @@ UnityTaskbarManager::UnityTaskbarManager() {
|
|||
/*
|
||||
* Deprecated in Glib >= 2.36.0
|
||||
*/
|
||||
g_type_init();
|
||||
if (!glib_check_version(2, 36, 0)) {
|
||||
g_type_init();
|
||||
}
|
||||
|
||||
_loop = g_main_loop_new(NULL, FALSE);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue