diff options
author | James Henstridge <jamesh@src.gnome.org> | 2002-01-22 06:08:04 +0000 |
---|---|---|
committer | James Henstridge <jamesh@src.gnome.org> | 2002-01-22 06:08:04 +0000 |
commit | cddacd34b4fb22345b1caaaf16a7799755ef57ef (patch) | |
tree | 8c3cec2a6e2e86771017446d1eb9e65219a95064 /gobject/pygobject-private.h | |
parent | f0306607093931b60b201828429ab42bf061f1da (diff) | |
download | pygtk-cddacd34b4fb22345b1caaaf16a7799755ef57ef.tar.gz |
small patch to get things working again after last commit.
Diffstat (limited to 'gobject/pygobject-private.h')
-rw-r--r-- | gobject/pygobject-private.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gobject/pygobject-private.h b/gobject/pygobject-private.h index 3c767ca3..c8677ace 100644 --- a/gobject/pygobject-private.h +++ b/gobject/pygobject-private.h @@ -10,6 +10,16 @@ /* from gobjectmodule.c */ +staticforward struct _PyGObject_Functions pygobject_api_functions; +#define pyg_block_threads() G_STMT_START { \ + if (pygobject_api_functions.block_threads != NULL) \ + (* pygobject_api_functions.block_threads)(); \ + } G_STMT_END +#define pyg_unblock_threads() G_STMT_START { \ + if (pygobject_api_functions.unblock_threads != NULL) \ + (* pygobject_api_functions.unblock_threads)(); \ + } G_STMT_END + GType PY_TYPE_OBJECT; PyObject * pygobject_new (GObject *obj); |