egg: Don't use deprecated g_thread_supported() function

Nowadays glib always supports threading.
This commit is contained in:
Stef Walter 2013-02-13 17:18:17 +01:00
parent 61e017e2e6
commit 2e8ee7cdb6

View File

@ -102,7 +102,6 @@ egg_libgcrypt_initialize (void)
/* Only initialize libgcrypt if it hasn't already been initialized */ /* Only initialize libgcrypt if it hasn't already been initialized */
if (!gcry_control (GCRYCTL_INITIALIZATION_FINISHED_P)) { if (!gcry_control (GCRYCTL_INITIALIZATION_FINISHED_P)) {
if (g_thread_supported())
gcry_control (GCRYCTL_SET_THREAD_CBS, &glib_thread_cbs); gcry_control (GCRYCTL_SET_THREAD_CBS, &glib_thread_cbs);
gcry_check_version (LIBGCRYPT_VERSION); gcry_check_version (LIBGCRYPT_VERSION);
gcry_set_log_handler (log_handler, NULL); gcry_set_log_handler (log_handler, NULL);