diff options
author | Paul Pogonyshev <pogonyshev@gmx.net> | 2008-08-03 15:35:17 +0000 |
---|---|---|
committer | Paul Pogonyshev <paulp@src.gnome.org> | 2008-08-03 15:35:17 +0000 |
commit | cc630ab67b9483f9c3c71ffa2ecffee7d61bed8c (patch) | |
tree | 7d886bd248d9728bf3f75c1957294de4d6d53d1a /glib/pyglib.h | |
parent | 24469111668f8543616f93d0cf5ab797adbc103f (diff) | |
download | pygobject-cc630ab67b9483f9c3c71ffa2ecffee7d61bed8c.tar.gz pygobject-cc630ab67b9483f9c3c71ffa2ecffee7d61bed8c.tar.xz pygobject-cc630ab67b9483f9c3c71ffa2ecffee7d61bed8c.zip |
Change return value from 'gboolean' to 'int' and changed semantics to
2008-08-03 Paul Pogonyshev <pogonyshev@gmx.net>
* glib/pyglib.h:
* glib/pyglib.c (pyglib_enable_threads): Change return value from
'gboolean' to 'int' and changed semantics to Pythonic: restores
backwards compatibility.
* gobject/gobjectmodule.c (pyg_threads_init): Treat return value
accordingly (bug #544946).
svn path=/trunk/; revision=922
Diffstat (limited to 'glib/pyglib.h')
-rw-r--r-- | glib/pyglib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/pyglib.h b/glib/pyglib.h index d7322d3..66ac139 100644 --- a/glib/pyglib.h +++ b/glib/pyglib.h @@ -34,7 +34,7 @@ void pyglib_init(void); void pyglib_init_internal(PyObject *api); PyGILState_STATE pyglib_gil_state_ensure(void); void pyglib_gil_state_release(PyGILState_STATE state); -gboolean pyglib_enable_threads(void); +int pyglib_enable_threads(void); gboolean pyglib_error_check(GError **error); gboolean pyglib_gerror_exception_check(GError **error); PyObject *pyglib_register_exception_for_domain(gchar *name, |