From 2ea3ae9c57a8d601e213030aef6b08b93ee48711 Mon Sep 17 00:00:00 2001 From: Tobia Tesan Date: Mon, 6 Oct 2014 16:29:37 +0200 Subject: UNITY: Check for GLib version at runtime g_type_init() is deprecated since 2.36 --- backends/taskbar/unity/unity-taskbar.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'backends/taskbar') diff --git a/backends/taskbar/unity/unity-taskbar.cpp b/backends/taskbar/unity/unity-taskbar.cpp index 6673e61eaa..532d9656c3 100644 --- a/backends/taskbar/unity/unity-taskbar.cpp +++ b/backends/taskbar/unity/unity-taskbar.cpp @@ -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); -- cgit v1.2.3