From 91f35ada7d5106292c96bb7dd19885b7365d68bd Mon Sep 17 00:00:00 2001 From: Sadrul Habib Chowdhury Date: Sun, 18 Nov 2007 19:47:34 -0500 Subject: [PATCH] Another fix from Josh 'sivad' Davis. This fixes the use of __gntbindings__ when threads are enabled. This is *awesome* stuff. --- gnt.override | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnt.override b/gnt.override index 0e0894e..e7dc8cd 100644 --- a/gnt.override +++ b/gnt.override @@ -171,10 +171,13 @@ define register_bindings static gboolean pygnt_binding_callback(GntBindable *bindable, GList *list) { + PyGILState_STATE state; + state = pyg_gil_state_ensure(); PyObject *wrapper = pygobject_new(G_OBJECT(bindable)); if (list) PyObject_CallMethod(wrapper, list->data, "O", Py_None); Py_DECREF(wrapper); + pyg_gil_state_release(state); return TRUE; } -- 2.11.4.GIT