diff options
author | Johan Dahlin <johan@gnome.org> | 2008-07-23 10:49:28 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-07-23 10:49:28 +0000 |
commit | c5639326d2f2f09175e495d4e24193e22df8f7be (patch) | |
tree | efa0df4235b2be514431d06b2657255c7b253ea4 /glib/pyglib.c | |
parent | d23d14addd53f7457684146aaade44cec2cf4643 (diff) | |
download | pygobject-c5639326d2f2f09175e495d4e24193e22df8f7be.tar.gz pygobject-c5639326d2f2f09175e495d4e24193e22df8f7be.tar.xz pygobject-c5639326d2f2f09175e495d4e24193e22df8f7be.zip |
Rename the function too, not just the prototype!
2008-07-23 Johan Dahlin <johan@gnome.org>
* glib/pyglib.c (_pyglib_destroy_notify):
Rename the function too, not just the prototype!
svn path=/trunk/; revision=849
Diffstat (limited to 'glib/pyglib.c')
-rw-r--r-- | glib/pyglib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/glib/pyglib.c b/glib/pyglib.c index ee163b8..6fbc5bb 100644 --- a/glib/pyglib.c +++ b/glib/pyglib.c @@ -340,20 +340,20 @@ pyglib_main_context_new(GMainContext *context) } /** - * pyglib_destroy_notify: + * _pyglib_destroy_notify: * @user_data: a PyObject pointer. * * A function that can be used as a GDestroyNotify callback that will * call Py_DECREF on the data. */ void -pyglib_destroy_notify(gpointer user_data) +_pyglib_destroy_notify(gpointer user_data) { PyObject *obj = (PyObject *)user_data; PyGILState_STATE state; g_return_if_fail (_PyGLib_API != NULL); - + state = pyglib_gil_state_ensure(); Py_DECREF(obj); pyglib_gil_state_release(state); |