Commit the patch.
This commit is contained in:
parent
59d1ffa0d2
commit
0d27f82b16
29
pygobject-2.15.2-threads-init.patch
Normal file
29
pygobject-2.15.2-threads-init.patch
Normal file
@ -0,0 +1,29 @@
|
||||
diff -up pygobject-2.15.2/glib/pyglib.c.thread-init pygobject-2.15.2/glib/pyglib.c
|
||||
diff -up pygobject-2.15.2/gobject/gobjectmodule.c.thread-init pygobject-2.15.2/gobject/gobjectmodule.c
|
||||
--- pygobject-2.15.2/gobject/gobjectmodule.c.thread-init 2008-07-26 06:21:44.000000000 -0400
|
||||
+++ pygobject-2.15.2/gobject/gobjectmodule.c 2008-08-07 15:06:01.000000000 -0400
|
||||
@@ -1944,6 +1944,15 @@ pyg_threads_init (PyObject *unused, PyOb
|
||||
return Py_None;
|
||||
}
|
||||
|
||||
+/* Only for backwards compatibility */
|
||||
+int
|
||||
+pygobject_enable_threads(void)
|
||||
+{
|
||||
+ if (!pyglib_enable_threads())
|
||||
+ return -1;
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
static PyObject *
|
||||
pyg_signal_accumulator_true_handled(PyObject *unused, PyObject *args)
|
||||
{
|
||||
@@ -2639,7 +2648,7 @@ struct _PyGObject_Functions pygobject_ap
|
||||
pyg_flags_from_gtype,
|
||||
|
||||
FALSE, /* threads_enabled */
|
||||
- pyglib_enable_threads,
|
||||
+ pygobject_enable_threads,
|
||||
pygobject_gil_state_ensure,
|
||||
pygobject_gil_state_release,
|
||||
pyg_register_class_init,
|
||||
Loading…
Reference in New Issue
Block a user