diff options
author | Johan Dahlin <johan@src.gnome.org> | 2008-03-22 20:10:38 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-03-22 20:10:38 +0000 |
commit | 33a5962f1142d0abc22a084ee3e53d6a53012d00 (patch) | |
tree | e0d170400d4a7c50f8254c2d23521099b9757063 | |
parent | c27ae2b634dc06b1242ac7a9368d11945a4e1783 (diff) | |
download | pygobject-33a5962f1142d0abc22a084ee3e53d6a53012d00.tar.gz pygobject-33a5962f1142d0abc22a084ee3e53d6a53012d00.tar.xz pygobject-33a5962f1142d0abc22a084ee3e53d6a53012d00.zip |
Fix the build
svn path=/trunk/; revision=754
-rw-r--r-- | gio/ginputstream.override | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/gio/ginputstream.override b/gio/ginputstream.override index a33903b..6a9cb6a 100644 --- a/gio/ginputstream.override +++ b/gio/ginputstream.override @@ -19,6 +19,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ +%% +headers #define BUFSIZE 8192 typedef struct { @@ -28,12 +30,6 @@ typedef struct { } PyGAsyncRequestNotifyRead; static void -py_decref_callback (gpointer data) -{ - Py_DECREF((PyObject*)data); -} - -static void async_result_callback_marshal_read(GObject *source_object, GAsyncResult *result, PyGAsyncRequestNotifyRead *notify) @@ -159,10 +155,8 @@ _wrap_g_input_stream_read_async(PyGObject *self, PyObject *args, PyObject *kwarg int io_priority = G_PRIORITY_DEFAULT; PyGObject *pycancellable; GCancellable *cancellable; - - PyGAsyncRequestNotifyRead *notify; - + notify = g_slice_new0(PyGAsyncRequestNotifyRead); if (!PyArg_ParseTupleAndKeywords(args, kwargs, |