| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Add the wrapper for gio.FileOutputStream.query_info_async
including docs and a test.
|
|
|
|
|
| |
Add the wrapper for gio.FileInputStream.query_async including docs and
a test.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
wrap gio.OutputStream.splice_async() and add a test.
|
|
|
|
| |
wrap gio.OutputStream.flush_async() and add a test.
|
|
|
|
| |
wrap gio.InputStream.skip_async() and add a test.
|
|
|
|
|
|
|
| |
Swap the arguments for consistency with other methods. Update
documentation accordingly. Take care to keep the old code (i.e. with
non-swapped calling arguments) working, but don't mention that
anywhere. (Bug #580490.)
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-04-05 Gian Mario Tagliaretti <gianmt@gnome.org>
* gio/gfile.override:
(_wrap_g_file_set_display_name_async) Wrap new GFile method.
* tests/test_gio.py: Test the above methods.
svn path=/trunk/; revision=1056
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-04-04 Gian Mario Tagliaretti <gianmt@gnome.org>
* gio/gfile.override:
(_wrap_g_file_set_attributes_async)
(_wrap_g_file_set_attributes_finish) Wrap new GFile methods.
* tests/test_gio.py: Test the above methods.
svn path=/trunk/; revision=1053
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-03-22 Gian Mario Tagliaretti <gianmt@gnome.org>
* gio/gfileenumerator.override (_wrap_g_file_enumerator_close_async)
wrap new method.
* tests/test_gio.py (TestGFileEnumerator.testCloseFilesAsync):
Test the above.
svn path=/trunk/; revision=1027
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2009-01-04 Mads Chr. Olesen <gnome-bugzilla@shiyee.dk>
* gio/gio.defs (gio.File.copy_async, gio.File.copy_finish): Define
methods.
* gio/gfile.override (_wrap_g_file_copy_async): New function.
* tests/test_gio.py (TestFile.test_copy_async): Test the methods.
svn path=/trunk/; revision=990
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-08-12 Paul Pogonyshev <pogonyshev@gmx.net>
Bug 547484 – wrap gio.DataInputStream.read_line and ...read_until
* tests/test_gio.py (TestDataInputStream): New test case.
* gio/ginputstream.override (_wrap_g_data_input_stream_read_line)
(_wrap_g_data_input_stream_read_until): New functions.
svn path=/trunk/; revision=946
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-08-12 Paul Pogonyshev <pogonyshev@gmx.net>
Bug 547354 – wrap a few memory stream methods
* gio/ginputstream.override (_wrap_g_memory_input_stream_add_data):
New function.
* gio/gio.defs (gio.MemoryOutputStream.get_contents): Rename from
get_data() to avoid name clash.
* gio/goutputstream.override (_wrap_g_memory_output_stream_new)
(_wrap_g_memory_output_stream_get_data): New functions.
* tests/test_gio.py (TestMemoryInputStream)
(TestMemoryOutputStream): New test cases.
svn path=/trunk/; revision=944
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-08-11 Paul Pogonyshev <pogonyshev@gmx.net>
Bug 547104 – improve type wrapper creation
* gio/gappinfo.override (_wrap_g_app_info_tp_richcompare)
(_wrap_g_app_info_tp_repr): New functions.
* tests/test_gio.py (TestAppInfo.test_eq): New test.
svn path=/trunk/; revision=941
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-08-10 Paul Pogonyshev <pogonyshev@gmx.net>
Bug 546120 – make gio.File more Pythonic
* gio/gfile.override (_wrap_g_file_tp_richcompare)
(_wrap_g_file_tp_hash, _wrap_g_file_tp_repr): New functions.
* tests/test_gio.py (TestFile.test_eq, TestFile.test_hash): New
tests.
svn path=/trunk/; revision=939
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-08-10 Jonathan Matthew <jonathan@d14n.org>
Bug 547067 – add File.replace_contents, replace_contents_async,
replace_contents_finish.
* gio/gfile.override:
* gio/gio.defs:
* tests/test_gio.py:
Add overrides, docs, and tests for File.replace_contents,
replace_contents_async, and replace_contents_finish.
svn path=/trunk/; revision=935
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn path=/trunk/; revision=923
|
|
|
|
| |
svn path=/trunk/; revision=920
|
|
|
|
| |
svn path=/trunk/; revision=912
|
|
|
|
| |
svn path=/trunk/; revision=909
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-08-02 Johan Dahlin <johan@gnome.org>
* gio/gio.defs:
* gio/gfile.override:
* tests/test_gio.py:
Wrap gio.File.move
svn path=/trunk/; revision=908
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-08-01 Johan Dahlin <johan@gnome.org>
Bug 545861 – g_file_info_get_modification_time is missing
* gio/gfileinfo.override:
* gio/gio.defs:
* tests/test_gio.py:
Wrap, add test and documentation
svn path=/trunk/; revision=905
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
g_file_query_settable_attributes methods.
svn path=/trunk/; revision=901
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-26 Johan Dahlin <johan@gnome.org>
* examples/gio/directory-async.py:
* gio/Makefile.am:
* gio/giomodule.c (init_gio):
* glib/pyglib.c (pyglib_error_check),
(pyglib_register_exception_for_domain):
* glib/pyglib.h:
* tests/test_gio.py:
Add a new API for registering exceptions for a GError domain.
Register a new exception for G_IO_ERROR, update tests
and examples to use the new exception.
svn path=/trunk/; revision=863
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-26 Johan Dahlin <johan@gnome.org>
* glib/glibmodule.c (pyglib_register_constants), (init_glib):
* gobject/__init__.py:
* gobject/gobjectmodule.c (init_gobject):
Move over glib constants to gobject
* tests/test_gio.py:
* tests/test_mainloop.py:
* tests/test_source.py:
* tests/test_subprocess.py:
* tests/test_thread.py:
Update tests to refer to glib when appropriate
svn path=/trunk/; revision=858
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-19 Johan Dahlin <johan@gnome.org>
* examples/gio/directory-async.py:
* gio/gfileenumerator.override:
* gio/gio.defs:
* tests/test_gio.py:
Wrap gio.FileEnumerator.next_files_async/next_files_done.
Update the example to use them instead of the synchronous versions,
add documentation and tests.
svn path=/trunk/; revision=832
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* examples/gio/directory-async.py:
* gio/gfile.override:
* gio/gfileenumerator.override:
* gio/gio.defs:
* tests/test_gio.py:
Wrap gio.File.enumerate_children_async, add tests, docstring
and an example.
Also document gio.File.enumerate while we're at it.
svn path=/trunk/; revision=828
|
|
|
|
|
|
| |
and a test
svn path=/trunk/; revision=802
|
|
|
|
| |
svn path=/trunk/; revision=793
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-06-17 Johan Dahlin <jdahlin@async.com.br>
* gio/gio-types.defs:
* tests/test_gio.py:
Sort out confusion between interfaces and objects, add test.
Fixes #538601
svn path=/trunk/; revision=788
|
|
|
|
| |
svn path=/trunk/; revision=774
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-04-11 Johan Dahlin <jdahlin@async.com.br>
* gio/gfile.override:
* gio/ginputstream.override:
* gio/goutputstream.override:
* tests/test_gio.py:
Move around the order of the callback argument to async methods,
so it comes before priority and cancellable, which can have default
values.
svn path=/trunk/; revision=773
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-04-08 Johan Dahlin <johan@gnome.org>
* tests/test_gio.py (TestOutputStream.testWriteAsyncError):
(TestInputStream._testCloseAsync.callback):
Disable these tests until we can figure why they freeze during
make check.
svn path=/trunk/; revision=769
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
2008-04-06 Johan Dahlin <johan@gnome.org>
* tests/test_gio.py: Add tests for recently added features.
svn path=/trunk/; revision=762
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-03-09 Johan Dahlin <johan@gnome.org>
* gio/gio-types.defs:
* gio/gio.defs:
* tests/test_gio.py:
Update to SVN of gio:
g_file_contains_file -> g_file_has_prefix
can_seek and can_truncate are now only on the GSeekable interface
Add tests
(#521207, Thomas Leonard)
svn path=/trunk/; revision=750
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|