summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--egg/egg-testing.c4
-rw-r--r--gcr/gcr-viewer-tool.c1
2 files changed, 3 insertions, 2 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 ();
diff --git a/gcr/gcr-viewer-tool.c b/gcr/gcr-viewer-tool.c
index e3510f4..1ca34f9 100644
--- a/gcr/gcr-viewer-tool.c
+++ b/gcr/gcr-viewer-tool.c
@@ -88,7 +88,6 @@ main (int argc, char *argv[])
GtkWindow *window;
g_type_init ();
- g_thread_init (NULL);
#ifdef HAVE_LOCALE_H
/* internationalisation */