summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--gobject/pygobject.c3
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6e6d770..28c9853 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-03-03 Edward Hervey <edward@fluendo.com>
+
+ * gobject/pygobject.c: (set_property_from_pspec):
+ Release the GIL when calling g_object_set_property, since setting a
+ property might trigger some code that might come back in python land.
+ Fixes #395048
+
2007-01-09 Gustavo J. A. M. Carneiro <gjc@gnome.org>
* configure.ac: Turn the option --disable-docs into --enable-docs.
diff --git a/gobject/pygobject.c b/gobject/pygobject.c
index 94ae09c..3b6498e 100644
--- a/gobject/pygobject.c
+++ b/gobject/pygobject.c
@@ -273,7 +273,10 @@ set_property_from_pspec(GObject *obj,
return FALSE;
}
+ pyg_begin_allow_threads;
g_object_set_property(obj, attr_name, &value);
+ pyg_end_allow_threads;
+
g_value_unset(&value);
return TRUE;