Index: evince/evincemodule.c
===================================================================
--- evince/evincemodule.c	(revision 529)
+++ evince/evincemodule.c	(working copy)
@@ -5,6 +5,8 @@
 /* include this first, before NO_IMPORT_PYGOBJECT is defined */
 #include <pygobject.h>
 
+#include <evince-document.h>
+
 void pyevince_register_classes (PyObject *d);
 
 extern PyMethodDef pyevince_functions[];
@@ -16,6 +18,15 @@
 
     init_pygobject ();
 
+    /* Init glib threads asap */
+    if (!g_thread_supported ())
+       g_thread_init (NULL);
+
+    pyg_enable_threads ();
+
+    ev_file_helpers_init();
+    ev_backends_manager_init();
+
     m = Py_InitModule ("evince", pyevince_functions);
     d = PyModule_GetDict (m);
 
Index: evince/evince.override
===================================================================
--- evince/evince.override	(revision 529)
+++ evince/evince.override	(working copy)
@@ -74,21 +74,4 @@
 
     return 0;
 }
-%%
-override evince_embed_init noargs
-static PyObject *
-_wrap_evince_embed_init(PyObject *self)
-{
-    /* Init glib threads asap */
-    if (!g_thread_supported ())
-       g_thread_init (NULL);
 
-    pyg_enable_threads ();
-
-    ev_file_helpers_init();
-    ev_backends_manager_init();
-
-    Py_INCREF(Py_None);
-    return Py_None;
-}
-
Index: evince/evince.defs
===================================================================
--- evince/evince.defs	(revision 529)
+++ evince/evince.defs	(working copy)
@@ -703,9 +703,3 @@
   )
 )
 
-;; From embed.c
-
-(define-function evince_embed_init
-  (c-name "evince_embed_init")
-  (return-type "none")
-)

