summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--glib/pyglib.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index f4522ad..c14ad34 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-23 Johan Dahlin <johan@gnome.org>
+
+ * glib/pyglib.c (_pyglib_destroy_notify):
+ Rename the function too, not just the prototype!
+
2008-07-21 Johan Dahlin <johan@gnome.org>
* glib/glibmodule.c (pyglib_idle_add), (pyglib_timeout_add),
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);