diff --git a/gnt.override b/gnt.override index 0e0894e..81e97f2 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; }