diff options
author | Johan Dahlin <johan@src.gnome.org> | 2004-08-03 14:11:46 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2004-08-03 14:11:46 +0000 |
commit | 90aaf720cefcaed82196ea275b3a513315877300 (patch) | |
tree | 3097d16165d7b0d8268e768cab019a553f2214b6 /tests/enum.py | |
parent | 3e41db376f6e40c2df01a1f83c2ecf10a5315084 (diff) | |
download | pygobject-90aaf720cefcaed82196ea275b3a513315877300.tar.gz pygobject-90aaf720cefcaed82196ea275b3a513315877300.tar.xz pygobject-90aaf720cefcaed82196ea275b3a513315877300.zip |
Clean up most functions here to have only one return path.
* gtk/pygtktreemodel.c: Clean up most functions here to have only
one return path.
* gobject/pygobject.c (pygobject_emit): Protect g_value_unset by
UNBLOCK/BLOCK_THREADS since it might call pygobject_free which
will result in a deadlock.
* gobject/gobjectmodule.c (pyg_thread_init): New function, move
thread initalization stuff in here.
* All over the place: Kill pyg_block/unblock_threads and use
PyGILState and Py_BEGIN/END_ALLOW_THREADS.
unblock [code] block calls are replaced by Py_BEGIN/END and
block [code] unblock calls are replaced by PyGILState.
Diffstat (limited to 'tests/enum.py')
0 files changed, 0 insertions, 0 deletions