All pastes #103594 Raw Edit

James Livingston

public text v1 · immutable
#103594 ·published 2006-07-28 11:37 UTC
rendered paste body
Index: bindings/python/tinymail-platformmodule.c
===================================================================
--- bindings/python/tinymail-platformmodule.c	(revision 613)
+++ bindings/python/tinymail-platformmodule.c	(working copy)
@@ -16,6 +16,6 @@
     pyplatform_register_classes (d);
  
     if (PyErr_Occurred ()) {
-        Py_FatalError ("can't initialise module platform");
+        PyErr_Print();
     }
 }
Index: bindings/python/tinymailui.override
===================================================================
--- bindings/python/tinymailui.override	(revision 613)
+++ bindings/python/tinymailui.override	(working copy)
@@ -15,8 +15,6 @@
 #define NO_IMPORT_PYGOBJECT
 #include "pygobject.h"
 
-static PyTypeObject *PyGObject_Type=NULL;
-
 %%
 modulename ui
 %%
Index: bindings/python/tinymail.override
===================================================================
--- bindings/python/tinymail.override	(revision 613)
+++ bindings/python/tinymail.override	(working copy)
@@ -22,7 +22,6 @@
 #define NO_IMPORT_PYGOBJECT
 #include "pygobject.h"
 
-static PyTypeObject *PyGObject_Type=NULL;
 
 %%
 modulename tinymail
@@ -31,6 +30,8 @@
   *_get_type
 
 %%
+import gobject.GObject as PyGObject_Type
+%%
 override tny_msg_folder_iface_refresh_async kwargs
 
 static void
Index: bindings/python/tinymailui-gtk.override
===================================================================
--- bindings/python/tinymailui-gtk.override	(revision 613)
+++ bindings/python/tinymailui-gtk.override	(working copy)
@@ -17,13 +17,6 @@
 #include <tny-save-strategy.h>
 #include <tny-text-buffer-stream.h>
 
-extern PyTypeObject PyGtkTextBuffer_Type;
-extern PyTypeObject PyGtkListStore_Type;
-extern PyTypeObject PyGtkTable_Type;
-extern PyTypeObject PyGtkScrolledWindow_Type;
-extern PyTypeObject PyGtkWindow_Type;
-static PyTypeObject *PyGObject_Type=NULL;
-
 %%
 modulename uigtk
 %%
Index: bindings/python/tinymail-platform.override
===================================================================
--- bindings/python/tinymail-platform.override	(revision 613)
+++ bindings/python/tinymail-platform.override	(working copy)
@@ -33,10 +33,6 @@
 #define NO_IMPORT_PYGOBJECT
 #include "pygobject.h"
 
-static PyTypeObject *PyGObject_Type=NULL;
-extern PyTypeObject PyGtkDialog_Type;
-extern PyTypeObject PyTnyAccountStoreIface_Type;
-
 %%
 modulename platform
 %%