summaryrefslogtreecommitdiff
path: root/pkcs11/wrap-layer/tests/test-login-hints.c
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2012-10-22 16:55:39 +0200
committerStef Walter <stefw@gnome.org>2012-10-22 16:55:39 +0200
commit0184447d6a6930e7fab1b6f3df97e89b81809c7e (patch)
tree222b3e4a33bb153b50f1e6414647441f51e96821 /pkcs11/wrap-layer/tests/test-login-hints.c
parent051d70fc3e95da1f67015c57b3d2358f23c2de26 (diff)
downloadgnome-keyring-0184447d6a6930e7fab1b6f3df97e89b81809c7e.tar.gz
Fix for deprecations in glib 2.35.0
* g_type_init() was deprecated
Diffstat (limited to 'pkcs11/wrap-layer/tests/test-login-hints.c')
-rw-r--r--pkcs11/wrap-layer/tests/test-login-hints.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkcs11/wrap-layer/tests/test-login-hints.c b/pkcs11/wrap-layer/tests/test-login-hints.c
index 48bb8309..369f84b9 100644
--- a/pkcs11/wrap-layer/tests/test-login-hints.c
+++ b/pkcs11/wrap-layer/tests/test-login-hints.c
@@ -55,7 +55,9 @@ test_did_unlock_fail (void)
int
main (int argc, char **argv)
{
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init ();
+#endif
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/wrap-layer/login-hints/did_unlock_fail", test_did_unlock_fail);