From a395859226fd2532b5a8a59757c460ccbd26ded0 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sat, 22 Mar 2014 19:13:58 +0100 Subject: fix some g_thread_init deprecations --- test/test-caja-search-engine.c | 4 +++- test/test-copy.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/test-caja-search-engine.c b/test/test-caja-search-engine.c index 6a4ace70..6695f916 100644 --- a/test/test-caja-search-engine.c +++ b/test/test-caja-search-engine.c @@ -34,7 +34,9 @@ main (int argc, char* argv[]) CajaSearchEngine *engine; CajaQuery *query; - g_thread_init (NULL); +#if !GLIB_CHECK_VERSION (2, 32, 0) + g_thread_init (NULL); +#endif gtk_init (&argc, &argv); diff --git a/test/test-copy.c b/test/test-copy.c index 5eaab1e5..81407812 100644 --- a/test/test-copy.c +++ b/test/test-copy.c @@ -45,7 +45,9 @@ main (int argc, char* argv[]) GList *infos; CajaProgressInfo *progress_info; - g_thread_init (NULL); +#if !GLIB_CHECK_VERSION (2, 32, 0) + g_thread_init (NULL); +#endif test_init (&argc, &argv); -- cgit v1.2.1