From ee18557082ac1fd196e23c24db6d51b0ab2aa687 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Sun, 17 Jul 2005 20:10:28 +0000 Subject: We have atomic ref counting in glib now, remove block/unblocking around * gobject/pygobject.c: (pygobject_new_full), (pygobject_dealloc), (pygobject_clear): * gtk/gdk.override: * gtk/gtk-types.c: (_pygtk_style_helper_new), (pygtk_style_helper_dealloc), (pygtk_style_helper_setitem), (pygtk_tree_model_row_dealloc), (pygtk_tree_model_row_iter_dealloc): * gtk/gtk.override: * gtk/gtkwidget.override: We have atomic ref counting in glib now, remove block/unblocking around reference counting. --- gobject/pygobject.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gobject/pygobject.c b/gobject/pygobject.c index 8d6deb2..3877272 100644 --- a/gobject/pygobject.c +++ b/gobject/pygobject.c @@ -714,9 +714,7 @@ pygobject_new_full(GObject *obj, gboolean sink) self = PyObject_GC_New(PyGObject, tp); if (self == NULL) return NULL; - pyg_begin_allow_threads; self->obj = g_object_ref(obj); - pyg_end_allow_threads; if (sink) sink_object(self->obj); @@ -787,9 +785,7 @@ pygobject_dealloc(PyGObject *self) PyObject_GC_UnTrack((PyObject *)self); if (self->obj) { - pyg_begin_allow_threads; g_object_unref(self->obj); - pyg_end_allow_threads; } self->obj = NULL; @@ -898,9 +894,7 @@ pygobject_clear(PyGObject *self) g_message("invalidated all closures, but self->closures != NULL !"); if (self->obj) { - pyg_begin_allow_threads; g_object_unref(self->obj); - pyg_end_allow_threads; } self->obj = NULL; -- cgit