diff options
| author | Johan Dahlin <johan@gnome.org> | 2008-07-24 21:38:50 +0000 |
|---|---|---|
| committer | Johan Dahlin <johan@src.gnome.org> | 2008-07-24 21:38:50 +0000 |
| commit | 4777faab0d31bd883bf2eee600bf8bd32f119600 (patch) | |
| tree | 7b56d4ac2aaa902bc0924f25bb5dfe790230e140 /gio/goutputstream.override | |
| parent | c5639326d2f2f09175e495d4e24193e22df8f7be (diff) | |
Wrap gio.File.copy, add tests and documentation. Rename
2008-07-24 Johan Dahlin <johan@gnome.org>
* gio/gfile.override:
* gio/gfileenumerator.override:
* gio/ginputstream.override:
* gio/gio.defs:
* gio/gio.override:
* gio/goutputstream.override:
* tests/test_gio.py:
Wrap gio.File.copy, add tests and documentation.
Rename PyGAsyncRequestNotify to PyGIONotify and reuse it.
svn path=/trunk/; revision=850
Diffstat (limited to 'gio/goutputstream.override')
| -rw-r--r-- | gio/goutputstream.override | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gio/goutputstream.override b/gio/goutputstream.override index 193bdc7..3bcf3ce 100644 --- a/gio/goutputstream.override +++ b/gio/goutputstream.override @@ -67,9 +67,9 @@ _wrap_g_output_stream_write_async(PyGObject *self, int io_priority = G_PRIORITY_DEFAULT; PyGObject *pycancellable = NULL; GCancellable *cancellable; - PyGAsyncRequestNotify *notify; + PyGIONotify *notify; - notify = g_slice_new0(PyGAsyncRequestNotify); + notify = g_slice_new0(PyGIONotify); if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s#O|iOO:OutputStream.write_async", @@ -80,14 +80,14 @@ _wrap_g_output_stream_write_async(PyGObject *self, &pycancellable, ¬ify->data)) { - g_slice_free(PyGAsyncRequestNotify, notify); + g_slice_free(PyGIONotify, notify); return NULL; } if (!PyCallable_Check(notify->callback)) { PyErr_SetString(PyExc_TypeError, "callback argument not callable"); - g_slice_free(PyGAsyncRequestNotify, notify); + g_slice_free(PyGIONotify, notify); return NULL; } Py_INCREF(notify->callback); @@ -119,9 +119,9 @@ _wrap_g_output_stream_close_async(PyGObject *self, int io_priority = G_PRIORITY_DEFAULT; PyGObject *pycancellable = NULL; GCancellable *cancellable; - PyGAsyncRequestNotify *notify; + PyGIONotify *notify; - notify = g_slice_new0(PyGAsyncRequestNotify); + notify = g_slice_new0(PyGIONotify); if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|iOO:OutputStream.close_async", @@ -131,7 +131,7 @@ _wrap_g_output_stream_close_async(PyGObject *self, &pycancellable, ¬ify->data)) { - g_slice_free(PyGAsyncRequestNotify, notify); + g_slice_free(PyGIONotify, notify); return NULL; } @@ -141,7 +141,7 @@ _wrap_g_output_stream_close_async(PyGObject *self, if (!PyCallable_Check(notify->callback)) { PyErr_SetString(PyExc_TypeError, "callback argument not callable"); - g_slice_free(PyGAsyncRequestNotify, notify); + g_slice_free(PyGIONotify, notify); return NULL; } Py_INCREF(notify->callback); |
