diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-27 22:26:40 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-27 22:26:40 +0000 |
commit | 8784d3134c1d4b4c02d705259ae2ebd768c778fd (patch) | |
tree | 2d5e15ad1adac97b4a07a58b1618dda602cea3a0 /community/medit | |
parent | 18d6577d511b9a1ac36eaae50060133a401e42a3 (diff) |
Wed Apr 27 22:26:47 UTC 2011
Diffstat (limited to 'community/medit')
-rw-r--r-- | community/medit/capsule.diff | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/community/medit/capsule.diff b/community/medit/capsule.diff deleted file mode 100644 index 7ce4edab8..000000000 --- a/community/medit/capsule.diff +++ /dev/null @@ -1,47 +0,0 @@ ---- medit-1.0.0.orig/moo/moopython/moopython-pygtkmod.h 2010-12-22 05:11:46.000000000 +0100 -+++ medit-1.0.0/moo/moopython/moopython-pygtkmod.h 2011-02-08 16:14:10.000000000 +0100 -@@ -20,7 +20,7 @@ - G_GNUC_UNUSED static void - init_pygtk_mod (void) - { -- PyObject *gobject, *pygtk; -+ PyObject *gobject; - PyObject *mdict; - PyObject *cobject; - -@@ -29,7 +29,7 @@ - - mdict = PyModule_GetDict (gobject); - cobject = PyDict_GetItemString (mdict, "_PyGObject_API"); -- -+ - if (!cobject || !PyCObject_Check (cobject)) - { - PyErr_SetString (PyExc_RuntimeError, -@@ -38,21 +38,13 @@ - } - - _PyGObject_API = (struct _PyGObject_Functions *) PyCObject_AsVoidPtr (cobject); -- -- if (!(pygtk = PyImport_ImportModule("gtk._gtk"))) -- return; -- -- mdict = PyModule_GetDict (pygtk); -- cobject = PyDict_GetItemString (mdict, "_PyGtk_API"); -- -- if (!cobject || !PyCObject_Check (cobject)) -- { -- PyErr_SetString (PyExc_RuntimeError, -- "could not find _PyGtk_API object"); -+ -+ void *capsule = PyCapsule_Import("gtk._gtk._PyGtk_API", 0); -+ if (!capsule) { - return; - } -- -- _PyGtk_API = (struct _PyGtk_FunctionStruct*) PyCObject_AsVoidPtr (cobject); -+ -+ _PyGtk_API = (struct _PyGtk_FunctionStruct*) capsule; - } - - |