summaryrefslogtreecommitdiffstats
path: root/glib/glibmodule.c
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-07-21 17:55:40 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-07-21 17:55:40 +0000
commitd23d14addd53f7457684146aaade44cec2cf4643 (patch)
tree86eb4820b1b3a896958d636ea04abcd39bbce061 /glib/glibmodule.c
parent6594b6f890693c19dfeed20889b0db4c6217c31f (diff)
downloadpygobject-d23d14addd53f7457684146aaade44cec2cf4643.tar.gz
pygobject-d23d14addd53f7457684146aaade44cec2cf4643.tar.xz
pygobject-d23d14addd53f7457684146aaade44cec2cf4643.zip
Make pyglib_destroy_notify and pyglib_handler_marshal private. Add a few
2008-07-21 Johan Dahlin <johan@gnome.org> * glib/glibmodule.c (pyglib_idle_add), (pyglib_timeout_add), (pyglib_timeout_add_seconds), (pyglib_io_add_watch): * glib/pyglib-private.h: * glib/pyglib.c (pyglib_destroy_notify), (_pyglib_handler_marshal): * glib/pyglib.h: * glib/pygsource.c (pyg_source_set_callback): Make pyglib_destroy_notify and pyglib_handler_marshal private. Add a few public prototypes. svn path=/trunk/; revision=848
Diffstat (limited to 'glib/glibmodule.c')
-rw-r--r--glib/glibmodule.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/glib/glibmodule.c b/glib/glibmodule.c
index 42de215..830da13 100644
--- a/glib/glibmodule.c
+++ b/glib/glibmodule.c
@@ -120,8 +120,9 @@ pyglib_idle_add(PyObject *self, PyObject *args, PyObject *kwargs)
data = Py_BuildValue("(ON)", callback, cbargs);
if (data == NULL)
return NULL;
- handler_id = g_idle_add_full(priority, pyglib_handler_marshal, data,
- pyglib_destroy_notify);
+ handler_id = g_idle_add_full(priority,
+ _pyglib_handler_marshal, data,
+ _pyglib_destroy_notify);
return PyInt_FromLong(handler_id);
}
@@ -160,8 +161,8 @@ pyglib_timeout_add(PyObject *self, PyObject *args, PyObject *kwargs)
if (data == NULL)
return NULL;
handler_id = g_timeout_add_full(priority, interval,
- pyglib_handler_marshal, data,
- pyglib_destroy_notify);
+ _pyglib_handler_marshal, data,
+ _pyglib_destroy_notify);
return PyInt_FromLong(handler_id);
}
@@ -199,8 +200,8 @@ pyglib_timeout_add_seconds(PyObject *self, PyObject *args, PyObject *kwargs)
if (data == NULL)
return NULL;
handler_id = g_timeout_add_seconds_full(priority, interval,
- pyglib_handler_marshal, data,
- pyglib_destroy_notify);
+ _pyglib_handler_marshal, data,
+ _pyglib_destroy_notify);
return PyInt_FromLong(handler_id);
}
@@ -288,7 +289,7 @@ pyglib_io_add_watch(PyObject *self, PyObject *args, PyObject *kwargs)
iochannel = g_io_channel_unix_new(fd);
handler_id = g_io_add_watch_full(iochannel, priority, condition,
iowatch_marshal, data,
- (GDestroyNotify)pyglib_destroy_notify);
+ (GDestroyNotify)_pyglib_destroy_notify);
g_io_channel_unref(iochannel);
return PyInt_FromLong(handler_id);