summaryrefslogtreecommitdiffstats
path: root/gio/gio.override
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup GIO overrides to use Python function/method namesPaul Pogonyshev2009-06-121-204/+0
| | | | | Also move several gio.Mount overrides over from 'gio.override' to existing 'gmount.override'. Part of bug #584289.
* Wrap gio.BufferedInputStream.fill_asyncGian Mario Tagliaretti2009-06-091-0/+1
| | | | Wrap the method gio.BufferedInputStream.fill_async and add a test
* Split overrides for gio.MemoryOutputStreamGian Mario Tagliaretti2009-06-091-0/+1
|
* Wrap gio.memory_input_stream_new_from_dataGian Mario Tagliaretti2009-06-091-0/+1
| | | | | Add the wrapper for gio.memory_input_stream_new_from_data including docs and a test.
* Wrap gio.FileOutputStream.query_info_asyncGian Mario Tagliaretti2009-06-021-0/+1
| | | | | Add the wrapper for gio.FileOutputStream.query_info_async including docs and a test.
* Wrap gio.FileInputStream.query_asyncGian Mario Tagliaretti2009-06-011-0/+1
| | | | | Add the wrapper for gio.FileInputStream.query_async including docs and a test.
* Wrap gio.DataInputStream.read_line_async and read_until_asyncPaul Pogonyshev2009-05-311-0/+1
| | | | | | | Wrap the functions and their corresponding *_finish() functions. Create 'gdatainputstream.override' for these and move two existing functions there. Add unit tests. Re-enable synchronous read_line unit test and adjust it for new official GIO behavior. Bug #584285.
* Add wrapper for gio.FileAttributeMatcherGian Mario Tagliaretti2009-05-131-0/+2
| | | | | added a boxed type for gio.FileAttributeMatcher which has been forgotten while wrapping the gio API. This should probably be done in gio itself.
* Wrap three gio.Mount methodsGian Mario Tagliaretti2009-04-291-0/+1
| | | | | | | the following methods of gio.Mount have been wrapped including docs (_wrap_g_mount_guess_content_type) (_wrap_g_mount_guess_content_type_finish) (_wrap_g_mount_guess_content_type_sync)
* Bug 578870 – memory leak in gio.File.copy_asyncPaul Pogonyshev2009-04-131-2/+26
| | | | | | | | | | | | | | | | | 2009-04-13 Paul Pogonyshev <pogonyshev@gmx.net> Bug 578870 – memory leak in gio.File.copy_async * gio/gio.override (PyGIONotify): Add 'slaves' field. (pygio_notify_new_slave): New function. (pygio_notify_reference_callback): Recurse for slaves, if any. (pygio_notify_free): Likewise. * gio/gfile.override (file_progress_callback_marshal): Use new chaining functionality to avoid leaking the second PyGIONotify structure. Rename 'callback' as 'progress_callback' for clarity. svn path=/trunk/; revision=1060
* Bug 575781 – pyg_notify_free needs to ensure it has GIL before callingJonathan Matthew2009-04-081-0/+4
| | | | | | | | | | | | 2009-04-09 Jonathan Matthew <jonathan@d14n.org> Bug 575781 – pyg_notify_free needs to ensure it has GIL before calling Py_XDECREF * gio/gio.override: Ensure we're holding the GIL before potentially destroying the callback and data. svn path=/trunk/; revision=1057
* Update the address of the FSF, by replacing old bits of the address withTobias Mueller2009-03-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-03-29 Tobias Mueller <tobiasmue@gnome.org> Update the address of the FSF, by replacing old bits of the address with new ones. Fixes bug 577134 * ltihooks.py: * pygtk.py: * COPYING: * gobject/pygparamspec.h: * gobject/pygpointer.c: * gobject/ffi-marshaller.h: * gobject/pygtype.c: * gobject/__init__.py: * gobject/pygpointer.h: * gobject/pygtype.h: * gobject/pygflags.c: * gobject/pyginterface.c: * gobject/pygflags.h: * gobject/pygboxed.c: * gobject/gobjectmodule.c: * gobject/pygenum.c: * gobject/pyginterface.h: * gobject/pygboxed.h: * gobject/pygobject.c: * gobject/constants.py.in: * gobject/pygenum.h: * gobject/propertyhelper.py: * gobject/pygparamspec.c: * gobject/ffi-marshaller.c: * glib/pygmainloop.c: * glib/pygoptioncontext.h: * glib/pygmainloop.h: * glib/pyglib-private.h: * glib/__init__.py: * glib/pygoptiongroup.c: * glib/pygspawn.c: * glib/pygmaincontext.c: * glib/pygoptiongroup.h: * glib/pygspawn.h: * glib/pygmaincontext.h: * glib/option.py: * glib/pygsource.c: * glib/glibmodule.c: * glib/pygiochannel.h: * glib/pygsource.h: * glib/pyglib.c: * glib/pyglib.h: * glib/pyglib-python-compat.h: * glib/pygoptioncontext.c: * gio/gfileinfo.override: * gio/gappinfo.override: * gio/__init__.py: * gio/gfileattribute.override: * gio/gvolume.override: * gio/gio.override: * gio/ginputstream.override: * gio/goutputstream.override: * gio/unix.override: * gio/gfile.override: * gio/gvolumemonitor.override: * gio/gapplaunchcontext.override: * gio/giomodule.c: * gio/gfileenumerator.override: * gio/pygio-utils.c: * gio/unixmodule.c: * gio/pygio-utils.h: * gio/gicon.override: svn path=/trunk/; revision=1038
* add a couple of convinence functions to convert from/to a python list andGian Mario Tagliaretti2009-03-281-138/+1
| | | | | | | | | | | | | | | | | | | | | | 2009-03-28 Gian Mario Tagliaretti <gianmt@gnome.org> * gio/pygio-utils.[hc]: (strv_to_pylist) (pylist_to_strv) add a couple of convinence functions to convert from/to a python list and an array of strings. * gio/Makefile.am * gio/gdrive.override: * gio/gio.override: Strip GDrive overrides and wrap g_drive_enumerate_identifiers * tests/test_gio.py: * gio/gvolume.override: wrap g_volume_enumerate_identifiers * gio/gio.defs: add missing g_drive_get_identifier and g_drive_enumerate_identifiers svn path=/trunk/; revision=1035
* Bug 556250 again. I screwed up and gave misinformation about how to fixGustavo J. A. M. Carneiro2009-02-171-10/+10
| | | | | | | | | | * gio/gfile.override, gio/gio.defs, gio/gio.override: Bug 556250 again. I screwed up and gave misinformation about how to fix it. It must be pyg_begin/end_allow_threads, pyg_block/unblock_threads is only to be used for async callbacks. svn path=/trunk/; revision=1005
* release the thread lock on non-async functions.Gian Mario Tagliaretti2009-02-161-0/+20
| | | | svn path=/trunk/; revision=1004
* huge patch to fix memory leaks all over the place, fixes #568427Gian Mario Tagliaretti2009-02-081-4/+10
| | | | svn path=/trunk/; revision=1002
* Bug 567792 – gio.InputStream.read_async can cause memory corruptionPaul Pogonyshev2009-01-291-15/+56
| | | | | | | | | | | | | | | | | | | | | | | 2009-01-29 Paul Pogonyshev <pogonyshev@gmx.net> Bug 567792 – gio.InputStream.read_async can cause memory corruption * gio/gio.override (py_decref_callback): Remove (unused now). (pygio_notify_allocate_buffer, pygio_notify_attach_to_result) (pygio_notify_get_attached): New functions. (async_result_callback_marshal): Attach to the result object if asked and then don't free self. Fix reference leak (spotted by Gustavo). * gio/ginputstream.override (async_result_callback_marshal_read): Remove. Use new attachment functionality in async_result_callback_marshal() instead. (_wrap_g_input_stream_read_async): Use the new functions (also those mentioned in the cleanup log below). (_wrap_g_input_stream_read_finish): Use the new functions. svn path=/trunk/; revision=999
* Bug 566706 – cleanup GIO overridesPaul Pogonyshev2009-01-141-104/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2009-01-14 Paul Pogonyshev <pogonyshev@gmx.net> Bug 566706 – cleanup GIO overrides * gio/gio.override (pygio_notify_new) (pygio_notify_using_optional_callback) (pygio_notify_callback_is_valid_full) (pygio_notify_callback_is_valid) (pygio_notify_reference_callback): New functions. (pygio_notify_free): Rename from pygio_free_notify() and extend. (async_result_callback_marshal): Warn if new `referenced' field is not set (programming error). (_wrap_g_drive_eject, _wrap_g_drive_poll_for_media) (_wrap_g_mount_unmount, _wrap_g_mount_eject) (_wrap_g_mount_remount): Lots of cleanup: use new functions instead of repeating code, unify and fix error handling. * gio/gfile.override (_wrap_g_file_read_async) (_wrap_g_file_load_contents_async) (_wrap_g_file_enumerate_children_async) (_wrap_g_file_mount_mountable, _wrap_g_file_unmount_mountable) (_wrap_g_file_mount_enclosing_volume, _wrap_g_file_copy) (_wrap_g_file_copy_async, _wrap_g_file_move) (_wrap_g_file_append_to_async, _wrap_g_file_create_async) (_wrap_g_file_replace_async, _wrap_g_file_query_info_async) (_wrap_g_file_replace_contents_async): Similar cleanup. * gio/gfileenumerator.override (_wrap_g_file_enumerator_next_files_async): Similar cleanup. * gio/gicon.override (_wrap_g_loadable_icon_load_async): Similar cleanup. * gio/ginputstream.override (_wrap_g_input_stream_close_async): Similar cleanup. * gio/goutputstream.override (_wrap_g_output_stream_write_async) (_wrap_g_output_stream_close_async): Similar cleanup. * gio/gvolume.override (_wrap_g_volume_mount) (_wrap_g_volume_eject): Similar cleanup. * tests/test_gio.py (TestFile.test_copy_async): Fix the test. svn path=/trunk/; revision=996
* Merge from 2.16 branch:Paul Pogonyshev2008-12-211-0/+14
| | | | | | | | | | | | | | | | | | | 2008-12-21 Paul Pogonyshev <pogonyshev@gmx.net> Bug 564102 – _wrap_g_output_stream_write_async not adding a reference to the buffer passed * gio/gio.override (pygio_notify_copy_buffer): New function. (pygio_free_notify): Free new `buffer' field if it is set. * gio/goutputstream.override (_wrap_g_output_stream_write_async): Copy the buffer with new pygio_notify_copy_buffer() and use the copy for g_output_stream_write_async() call. * gio/gfile.override (_wrap_g_file_replace_contents_async): Same as for _wrap_g_output_stream_write_async(). svn path=/trunk/; revision=981
* Bug 549517 – add __repr__ to gio.Drive, gio.Mount and gio.VolumePaul Pogonyshev2008-09-081-0/+50
| | | | | | | | | | | | | 2008-09-09 Paul Pogonyshev <pogonyshev@gmx.net> Bug 549517 – add __repr__ to gio.Drive, gio.Mount and gio.Volume * gio/gio.override (_wrap_g_drive_tp_repr, _wrap_g_mount_tp_repr): New functions. * gio/gvolume.override (_wrap_g_volume_tp_repr): New function. svn path=/trunk/; revision=969
* Bug 547088 – wrap g_content_types_get_registered()Paul Pogonyshev2008-08-271-0/+23
| | | | | | | | | | | | | | | | | | | 2008-08-28 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547088 – wrap g_content_types_get_registered() * gio/gio.override (_wrap_g_drive_get_volumes): Fix refleak. (_wrap_g_content_types_get_registered): New function. * gio/gfileenumerator.override (_wrap_g_file_enumerator_next_files_finish): Fix refleak. * gio/gvolumemonitor.override (_wrap_g_volume_monitor_get_connected_drives): Fix refleak. (_wrap_g_volume_monitor_get_volumes): Likewise. (_wrap_g_volume_monitor_get_mounts): Likewise. svn path=/trunk/; revision=951
* Rename from read(), document. (gio.InputStream.read): Rename fromPaul Pogonyshev2008-08-271-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | 2008-08-28 Paul Pogonyshev <pogonyshev@gmx.net> * gio/gio.defs (gio.InputStream.read_part): Rename from read(), document. (gio.InputStream.read): Rename from read_all(), document. (gio.OutputStream.write_part): Rename from write(), document. (gio.OutputStream.write): Rename from write_all(), document. * gio/ginputstream.override (_wrap_g_input_stream_read): Fix several bugs. (_wrap_g_input_stream_read_all): New function. * gio/goutputstream.override (_wrap_g_output_stream_write_all): New function. * tests/test_gio.py (TestInputStream.testRead): Add more tests. (TestInputStream.test_read_part): New test. (TestInputStream._read_in_loop): New helper method. (TestOutputStream.test_write_part): New test. svn path=/trunk/; revision=950
* Bug 547495 – wrap four important asynchronous methods in gio.Drive andPaul Pogonyshev2008-08-121-0/+222
| | | | | | | | | | | | | | | | 2008-08-13 Paul Pogonyshev <pogonyshev@gmx.net> Bug 547495 – wrap four important asynchronous methods in gio.Drive and gio.Mount * gio/gio.defs (gio.Drive.eject, gio.Drive.poll_for_media) (gio.Mount.remount): Document. * gio/gio.override (_wrap_g_drive_eject) (_wrap_g_drive_poll_for_media, _wrap_g_mount_eject) (_wrap_g_mount_remount): New functions. svn path=/trunk/; revision=948
* Ignore `g_io_module*' and `g_io_scheduler_*'.Paul Pogonyshev2008-08-111-0/+2
| | | | | | | | 2008-08-12 Paul Pogonyshev <pogonyshev@gmx.net> * gio/gio.override: Ignore `g_io_module*' and `g_io_scheduler_*'. svn path=/trunk/; revision=943
* Bug 546591 – File.copy progress_callback does not workPaul Pogonyshev2008-08-091-4/+9
| | | | | | | | | | | | | | | | | | | | | 2008-08-09 Paul Pogonyshev <pogonyshev@gmx.net> Bug 546591 – File.copy progress_callback does not work * gio/gfile.override (file_progress_callback_marshal): Use PyObject_CallFunction() instead of PyEval_CallFunction(). Use "K" instead of "k" (the latter is not correct for 32-bit platforms). Don't free 'notify' here. (_wrap_g_file_copy): Free 'notify'. (_wrap_g_file_move): Likewise. * gio/gio.override (pygio_free_notify): New function. (async_result_callback_marshal): Use it. * tests/test_gio.py (TestFile.test_copy_progress.progress): New test. svn path=/trunk/; revision=932
* Bug 546135 – GIcon and implementations improvementsPaul Pogonyshev2008-08-091-148/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-09 Paul Pogonyshev <pogonyshev@gmx.net> Bug 546135 – GIcon and implementations improvements * gio/gio.defs (gio.LoadableIcon.load) (gio.LoadableIcon.load_async, gio.LoadableIcon.load_finish): Document. * gio/Makefile.am: * gio/gicon.override: New file: parts of 'gio.override', three methods of gio.LoadableIcon and gio.ThemedIcon constructor. * gio/gio.override: Move over all icon-related overrides to 'gicon.override'. * tests/Makefile.am: * tests/test_gicon.py: New file: parts of 'test_gio.py' and several new gio.Icon tests. * tests/test_gio.py (TestThemedIcon): Move over to 'test_gicon.py'. svn path=/trunk/; revision=931
* Add 'pygio_do_icon_richcompare' prototype to header.Paul Pogonyshev2008-08-051-2/+4
| | | | | | | | | | | 2008-08-06 Paul Pogonyshev <pogonyshev@gmx.net> * gio/gio.override: Add 'pygio_do_icon_richcompare' prototype to header. (_wrap_g_file_icon_tp_repr, _wrap_g_themed_icon_tp_repr): Fix return value type in signature. svn path=/trunk/; revision=925
* Bug 546135 – GIcon and implementations improvementsPaul Pogonyshev2008-08-051-0/+124
| | | | | | | | | | | | | | | | | 2008-08-05 Paul Pogonyshev <pogonyshev@gmx.net> Bug 546135 – GIcon and implementations improvements * gio/gio-types.defs (FileIcon): New 'define-object'. * gio/gio.override (pygio_do_icon_richcompare) (_wrap_g_icon_tp_richcompare, _wrap_g_icon_tp_hash) (_wrap_g_file_icon_tp_richcompare, _wrap_g_file_icon_tp_hash) (_wrap_g_file_icon_tp_repr, _wrap_g_themed_icon_tp_richcompare) (_wrap_g_themed_icon_tp_hash, _wrap_g_themed_icon_tp_repr): New functions. svn path=/trunk/; revision=924
* Add pyglib_float_from_timeval and use itJohan Dahlin2008-08-021-0/+1
| | | | | | | | | | | | | | 2008-08-02 Johan Dahlin <johan@gnome.org> * gio/gfileinfo.override: * gio/gio.override: * glib/glibmodule.c (pyglib_get_current_time): * glib/pyglib.c (pyglib_float_from_timeval): * glib/pyglib.h: Add pyglib_float_from_timeval and use it svn path=/trunk/; revision=911
* Wrap gio.Volume.mount and gio.Volume.ejectJohan Dahlin2008-08-011-1/+2
| | | | | | | | | | | | | | 2008-08-02 Johan Dahlin <johan@gnome.org> * gio/Makefile.am: * gio/gfile.override: * gio/gio.defs: * gio/gio.override: * gio/gvolume.override: Wrap gio.Volume.mount and gio.Volume.eject svn path=/trunk/; revision=907
* Bug 545846 – g_vfs_get_supported_uri_schemes is missingJohan Dahlin2008-08-011-0/+21
| | | | | | | | | | | | | | 2008-08-01 Johan Dahlin <johan@gnome.org> Bug 545846 – g_vfs_get_supported_uri_schemes is missing * gio/gio.defs: * gio/gio.override: * tests/test_gio.py: Wrap, add test and documentation svn path=/trunk/; revision=904
* Wrap new object gio.FileAttributeInfo, g_file_set_attribute and ↵Gian Mario Tagliaretti2008-07-291-0/+1
| | | | | | g_file_query_settable_attributes methods. svn path=/trunk/; revision=901
* Wrap g_app_info_launch_uris, g_app_info_launch, ↵Gian Mario Tagliaretti2008-07-291-19/+20
| | | | | | g_app_launch_context_get_display and g_app_launch_context_get_startup_notify_id svn path=/trunk/; revision=898
* Wrap gio.File.copy, add tests and documentation. RenameJohan Dahlin2008-07-241-7/+7
| | | | | | | | | | | | | | | | | 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
* Ignore a bunch of functions which are not relevant.Johan Dahlin2008-07-191-2/+14
| | | | | | | | | | 2008-07-19 Johan Dahlin <johan@gnome.org> * gio/gio.override: Ignore a bunch of functions which are not relevant. svn path=/trunk/; revision=838
* Bind gio.Mount.unmount, gio.File.mount_mountable,Johan Dahlin2008-07-191-0/+55
| | | | | | | | | | | | | | | 2008-07-19 Johan Dahlin <johan@gnome.org> * gio/gfile.override: * gio/gio.defs: * gio/gio.override: * tests/test_gio.py: Bind gio.Mount.unmount, gio.File.mount_mountable, gio.File.unmount_mountable and gio.File.mount_enclosing_volume. Add documents and tests. svn path=/trunk/; revision=837
* Set module name back to gio, as setting it to gio._gio breaks pydoc.Johan Dahlin2008-07-191-1/+1
| | | | | | | | | | 2008-07-19 Johan Dahlin <johan@gnome.org> * gio/gio.override: Set module name back to gio, as setting it to gio._gio breaks pydoc. svn path=/trunk/; revision=836
* Only fetch name, saves a couple of syscalls. Set name to gio._gio soJohan Dahlin2008-07-181-1/+1
| | | | | | | | | | | | 2008-07-19 Johan Dahlin <johan@gnome.org> * examples/gio/directory-async.py: Only fetch name, saves a couple of syscalls. * gio/gio.override: Set name to gio._gio so pychecker/pydoc works. svn path=/trunk/; revision=831
* Refactor cancellable check to a utility function, avoidsJohan Dahlin2008-07-141-0/+1
| | | | | | | | | | | | | | | | 2008-07-14 Johan Dahlin <johan@gnome.org> * gio/Makefile.am: * gio/gfile.override: * gio/ginputstream.override: * gio/gio.override: * gio/goutputstream.override: * gio/pygio-utils.c (pygio_check_cancellable): * gio/pygio-utils.h: Refactor cancellable check to a utility function, avoids svn path=/trunk/; revision=797
* Implement GAppInfo constructor, add tests.Johan Dahlin2008-04-081-0/+1
| | | | | | | | | | | | | | | 2008-04-08 Johan Dahlin <jdahlin@async.com.br> * gio/Makefile.am: * gio/__init__.py: * gio/gappinfo.override: * gio/gio.defs: * gio/gio.override: * tests/test_gio.py: Implement GAppInfo constructor, add tests. svn path=/trunk/; revision=772
* Wrap GFileInfo.list_attributes(), add tests and set the default ofJohan Dahlin2008-04-081-0/+1
| | | | | | | | | | | | | | | 2008-04-08 Johan Dahlin <jdahlin@async.com.br> * gio/Makefile.am: * gio/gfileinfo.override: * gio/gio.defs: * gio/gio.override: * tests/test_gio.py: Wrap GFileInfo.list_attributes(), add tests and set the default of GFileQueryInfoFlags args to G_FILE_QUERY_INFO_NONE. svn path=/trunk/; revision=771
* Add bindings for content_type_guess. Based on patch by Thomas LeonardJohan Dahlin2008-04-081-0/+30
| | | | | | | | | | | | | 2008-04-08 Johan Dahlin <jdahlin@async.com.br> * gio/gio.defs: * gio/gio.override: * tests/test_gio.py: Add bindings for content_type_guess. Based on patch by Thomas Leonard (#525113) svn path=/trunk/; revision=768
* Add basic support for GThemedIcon, based on patch by Thomas LeonardJohan Dahlin2008-04-081-0/+21
| | | | | | | | | | | | | | 2008-04-08 Johan Dahlin <jdahlin@async.com.br> * gio/gio-types.defs: * gio/gio.defs: * gio/gio.override: * tests/test_gio.py: Add basic support for GThemedIcon, based on patch by Thomas Leonard (#521883) svn path=/trunk/; revision=767
* Make gio.File() (calling on an interface) a factory for creating files.Johan Dahlin2008-04-071-0/+3
| | | | | | | | | | | | | | | 2008-04-07 Johan Dahlin <johan@gnome.org> * gio/__init__.py: * gio/gfile.override: * gio/gio-types.defs: * gio/gio.override: * tests/test_gio.py: Make gio.File() (calling on an interface) a factory for creating files. Add tests and a docstring. svn path=/trunk/; revision=764
* Ignore vararg functions and remove a couple of left overs in the genericJohan Dahlin2008-04-061-11/+3
| | | | | | | | | | 2008-04-06 Johan Dahlin <johan@gnome.org> * gio/gio.override: Ignore vararg functions and remove a couple of left overs in the generic marshaller. svn path=/trunk/; revision=760
* Make read_finish() return the string, remove the get_buffer method. ThisJohan Dahlin2008-03-221-22/+9
| | | | | | | | | | | | | | | | 2008-03-22 Johan Dahlin <johan@gnome.org> * gio/ginputstream.override: * gio/gio.override: * tests/test_gio.py: Make read_finish() return the string, remove the get_buffer method. This is more pythonic, as it mimics the normal read() behavior of python. Update the tests and use a separate marshaller for read. svn path=/trunk/; revision=753
* Don't assume the buffer is set, use Py_XINCREF instead of Py_INCREF.Johan Dahlin2008-01-211-2/+3
| | | | | | | | | | | | | | | | | | | | 2008-01-21 Johan Dahlin <johan@gnome.org> * gio/gio.override (async_result_callback_marshal): Don't assume the buffer is set, use Py_XINCREF instead of Py_INCREF. * gio/Makefile.am: * gio/ginputstream.override: * gio/goutputstream.override: * gio/gvolumemonitor.override: * gio/gfile.override: * tests/test_gio.py: Implement and test GFile.read_async. Use try/finally to always quit the mainloop, even if the test fail. Update source comment headers. svn path=/trunk/; revision=744
* Split out overrides into more files. Fix up module description in commentJohan Dahlin2008-01-201-239/+29
| | | | | | | | | | | | | | | | | | 2008-01-20 Johan Dahlin <johan@gnome.org> * gio/Makefile.am: * gio/ginputstream.override: * gio/gio.override: * gio/giomodule.c: * gio/goutputstream.override: * gio/gvolumemonitor.override: * gio/unix.override: * gio/unixmodule.c: Split out overrides into more files. Fix up module description in comment svn path=/trunk/; revision=741
* Add a new method, to fetch the buffer (_wrap_g_input_stream_read_async):Johan Dahlin2008-01-201-8/+37
| | | | | | | | | | | | | 2008-01-20 Johan Dahlin <johan@gnome.org> * gio/gio.override (_wrap_g_simple_async_result_get_buffer): Add a new method, to fetch the buffer (_wrap_g_input_stream_read_async): Save a reference to the buffer. * tests/test_gio.py (TestInputStream.testReadAsync.callback): Check the content svn path=/trunk/; revision=740
* New function to test error condition of async read.Johan Dahlin2008-01-201-1/+3
| | | | | | | | | | | | | 2008-01-20 Johan Dahlin <johan@gnome.org> * tests/test_gio.py (TestInputStream.testReadAsyncError): New function to test error condition of async read. * gio/gio.override (async_result_callback_marshal): Grab a reference to callback/data. svn path=/trunk/; revision=739