summaryrefslogtreecommitdiff
path: root/egg/egg-testing.c
diff options
context:
space:
mode:
Diffstat (limited to 'egg/egg-testing.c')
-rw-r--r--egg/egg-testing.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/egg/egg-testing.c b/egg/egg-testing.c
index 0235ac0..cd7f5c2 100644
--- a/egg/egg-testing.c
+++ b/egg/egg-testing.c
@@ -25,6 +25,8 @@
#include "egg-testing.h"
+#include <glib-object.h>
+
#include <errno.h>
#include <unistd.h>
@@ -136,7 +138,7 @@ egg_tests_run_in_thread_with_loop (void)
GMainLoop *loop;
gpointer ret;
- g_thread_init (NULL);
+ g_type_init ();
loop = g_main_loop_new (NULL, FALSE);
wait_condition = g_cond_new ();