[pygobject] Fix crash when importing gio
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [pygobject] Fix crash when importing gio
- Date: Fri, 16 Apr 2010 10:37:15 +0000 (UTC)
commit 69ecd506c83ddf180c6cc9a2a8dc753a02543959
Author: John Stowers <john stowers gmail com>
Date:   Sat Jul 25 14:12:30 2009 +1200
    Fix crash when importing gio
    
    Only seems to be necessary on windows, but
    no harm on linux as multiple calls to init
    are OK
 gio/giomodule.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gio/giomodule.c b/gio/giomodule.c
index 171a06f..409aeef 100644
--- a/gio/giomodule.c
+++ b/gio/giomodule.c
@@ -50,6 +50,9 @@ init_gio(void)
     m = Py_InitModule("gio._gio", pygio_functions);
     d = PyModule_GetDict(m);
 
+    g_type_init();
+    pyglib_init();
+
     init_pygobject_check(2, 15, 2);
 
     pygio_register_classes(d);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]