From 0d27f82b16a52f9ddc3ef781929d2bee46850053 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 7 Aug 2008 19:27:28 +0000 Subject: [PATCH] Commit the patch. --- pygobject-2.15.2-threads-init.patch | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pygobject-2.15.2-threads-init.patch diff --git a/pygobject-2.15.2-threads-init.patch b/pygobject-2.15.2-threads-init.patch new file mode 100644 index 0000000..f117b9b --- /dev/null +++ b/pygobject-2.15.2-threads-init.patch @@ -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,