diff options
author | Johan Dahlin <johan@src.gnome.org> | 2005-07-17 20:10:28 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2005-07-17 20:10:28 +0000 |
commit | ee18557082ac1fd196e23c24db6d51b0ab2aa687 (patch) | |
tree | 2a721552fab06c12ded36b7ee45e243eaf2a8d44 | |
parent | 4d83c8260c2a95b29d5375bfa6c46bd8dc1309d4 (diff) | |
download | pygobject-ee18557082ac1fd196e23c24db6d51b0ab2aa687.tar.gz |
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.
-rw-r--r-- | gobject/pygobject.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gobject/pygobject.c b/gobject/pygobject.c index 8d6deb2d..3877272f 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; |