summaryrefslogtreecommitdiff
path: root/tests/pixbuf-random.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-01-10 07:49:44 -0500
committerMatthias Clasen <mclasen@redhat.com>2013-01-10 07:57:20 -0500
commit9f331218c98f16da1361d50aa6f580af61d61e11 (patch)
treefee86d41dfbe85de5feda7f44dcb1fd1b3ca0c88 /tests/pixbuf-random.c
parent6068c41010b3089341dd297182ec0656702d67af (diff)
downloadgdk-pixbuf-9f331218c98f16da1361d50aa6f580af61d61e11.tar.gz
More deprecation cleanup
Avoid deprecation warnings for g_type_init and g_thread_init.
Diffstat (limited to 'tests/pixbuf-random.c')
-rw-r--r--tests/pixbuf-random.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/pixbuf-random.c b/tests/pixbuf-random.c
index e94b63115..c1cabb5e9 100644
--- a/tests/pixbuf-random.c
+++ b/tests/pixbuf-random.c
@@ -126,7 +126,9 @@ main (int argc, char **argv)
}
g_print ("the last tested image is saved to the file \"pixbuf-random-image\"\n\n");
+#if !GLIB_CHECK_VERSION (2, 35, 3)
g_type_init ();
+#endif
g_log_set_always_fatal (G_LOG_LEVEL_WARNING | G_LOG_LEVEL_ERROR | G_LOG_LEVEL_CRITICAL);
g_random_set_seed (seed);