summaryrefslogtreecommitdiffstats
path: root/gobject/pygflags.c
diff options
context:
space:
mode:
Diffstat (limited to 'gobject/pygflags.c')
-rw-r--r--gobject/pygflags.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gobject/pygflags.c b/gobject/pygflags.c
index ca6eec0..381a1dd 100644
--- a/gobject/pygflags.c
+++ b/gobject/pygflags.c
@@ -195,7 +195,7 @@ pyg_flags_add (PyObject * module,
g_return_val_if_fail(typename != NULL, NULL);
g_return_val_if_fail(g_type_is_a(gtype, G_TYPE_FLAGS), NULL);
- state = PyGILState_Ensure();
+ state = pyg_gil_state_ensure();
instance_dict = PyDict_New();
stub = PyObject_CallFunction((PyObject *)&PyType_Type, "s(O)O",
@@ -204,7 +204,7 @@ pyg_flags_add (PyObject * module,
Py_DECREF(instance_dict);
if (!stub) {
PyErr_SetString(PyExc_RuntimeError, "can't create const");
- PyGILState_Release(state);
+ pyg_gil_state_release(state);
}
PyDict_SetItemString(((PyTypeObject *)stub)->tp_dict,
@@ -246,7 +246,7 @@ pyg_flags_add (PyObject * module,
g_type_class_unref(eclass);
- PyGILState_Release(state);
+ pyg_gil_state_release(state);
return stub;
}