Index: evince/evincemodule.c
===================================================================
--- evince/evincemodule.c	(revision 530)
+++ evince/evincemodule.c	(working copy)
@@ -5,7 +5,10 @@
 /* include this first, before NO_IMPORT_PYGOBJECT is defined */
 #include <pygobject.h>
 
+#include <evince-document.h>
+
 void pyevince_register_classes (PyObject *d);
+void pyevince_add_constants(PyObject *module, const gchar *strip_prefix);
 
 extern PyMethodDef pyevince_functions[];
 
@@ -16,6 +19,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 530)
+++ evince/evince.override	(working copy)
@@ -75,20 +75,5 @@
     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;
-}
-
+ignore
+    evince_embed_init
