summaryrefslogtreecommitdiffstats
path: root/gio
Commit message (Collapse)AuthorAgeFilesLines
...
* Bug 545846 – g_vfs_get_supported_uri_schemes is missingJohan Dahlin2008-08-012-0/+30
| | | | | | | | | | | | | | 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-295-36/+296
| | | | | | 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-298-36/+352
| | | | | | g_app_launch_context_get_display and g_app_launch_context_get_startup_notify_id svn path=/trunk/; revision=898
* Add gio.FILE_ATTRIBUTE_* constants and update the examples to use them.Johan Dahlin2008-07-291-0/+131
| | | | | | | | | | | 2008-07-29 Johan Dahlin <johan@gnome.org> * examples/gio/downloader.py: * gio/giomodule.c (init_gio): Add gio.FILE_ATTRIBUTE_* constants and update the examples to use them. svn path=/trunk/; revision=897
* Add a new exampleJohan Dahlin2008-07-281-9/+12
| | | | | | | | | | | | | | | 2008-07-29 Johan Dahlin <johan@gnome.org> * examples/gio/downloader.py: Add a new example * gio/ginputstream.override: Use a string internally instead of a PyStringObject when in read_async. Create a new python string in finish and honor the number of bytes read. svn path=/trunk/; revision=892
* Add a new API for registering exceptions for a GError domain. Register aJohan Dahlin2008-07-262-2/+7
| | | | | | | | | | | | | | | | | | 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
* remove unused structureJohan Dahlin2008-07-251-5/+0
| | | | svn path=/trunk/; revision=852
* Wrap gio.File.copy, add tests and documentation. RenameJohan Dahlin2008-07-246-55/+203
| | | | | | | | | | | | | | | | | 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-193-5/+272
| | | | | | | | | | | | | | | 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
* Use property based constructors when possible.Johan Dahlin2008-07-191-10/+10
| | | | | | | | | | 2008-07-19 Johan Dahlin <johan@gnome.org> * gio/gio.defs: Use property based constructors when possible. svn path=/trunk/; revision=835
* Wrap gio.FileEnumerator.next_files_async/next_files_done. Update theJohan Dahlin2008-07-182-0/+107
| | | | | | | | | | | | | | | 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
* 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
* Fix header filenameJohan Dahlin2008-07-181-1/+1
| | | | svn path=/trunk/; revision=830
* Wrap gio.File.enumerate_children_async, add tests, docstring and anJohan Dahlin2008-07-183-4/+102
| | | | | | | | | | | | | | * 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
* Use %zd instead of %d since it's a Py_ssize_t and not an int.Johan Dahlin2008-07-181-1/+1
| | | | | | | | | | 2008-07-18 Johan Dahlin <johan@gnome.org> * gio/gfile.override: Use %zd instead of %d since it's a Py_ssize_t and not an int. svn path=/trunk/; revision=827
* define NO_IMPORT_PYGOBJECT before including pygobject.hJohan Dahlin2008-07-181-1/+2
| | | | | | | | | | 2008-07-18 Johan Dahlin <johan@gnome.org> * gio/pygio-utils.h: define NO_IMPORT_PYGOBJECT before including pygobject.h svn path=/trunk/; revision=826
* Require pygobject 2.15.2Johan Dahlin2008-07-181-1/+1
| | | | | | | | | | 2008-07-18 Johan Dahlin <johan@gnome.org> * gio/giomodule.c (init_gio): Require pygobject 2.15.2 svn path=/trunk/; revision=825
* Put gio.override before all the othersJohan Dahlin2008-07-181-1/+1
| | | | svn path=/trunk/; revision=824
* Use #include <pygobject.h> instead of include "pygobject.h"Johan Dahlin2008-07-183-3/+3
| | | | svn path=/trunk/; revision=823
* The module is called gio._gio, not just _gio.Johan Dahlin2008-07-171-1/+1
| | | | | | | | | | 2008-07-17 Johan Dahlin <johan@gnome.org> * gio/giomodule.c (init_gio): (DL_EXPORT): The module is called gio._gio, not just _gio. svn path=/trunk/; revision=822
* s/pygobject/gio/Johan Dahlin2008-07-171-1/+1
| | | | svn path=/trunk/; revision=821
* Add a pygio_version module attributeJohan Dahlin2008-07-171-2/+14
| | | | | | | | | | 2008-07-17 Johan Dahlin <johan@gnome.org> * gio/giomodule.c (init_gio): Add a pygio_version module attribute svn path=/trunk/; revision=820
* Rename gio.IOErrorEnum to gio.ErrorEnumJohan Dahlin2008-07-171-1/+1
| | | | | | | | | | 2008-07-17 Johan Dahlin <johan@gnome.org> * gio/gio-types.defs: Rename gio.IOErrorEnum to gio.ErrorEnum svn path=/trunk/; revision=819
* Add gio.ERROR which maps to the G_IO_ERROR quark.Johan Dahlin2008-07-171-0/+2
| | | | | | | | | | 2008-07-17 Johan Dahlin <johan@gnome.org> * gio/giomodule.c (init_gio): Add gio.ERROR which maps to the G_IO_ERROR quark. svn path=/trunk/; revision=818
* Use the prefix G_IO_ for stripping constants instead of just G_ Check soJohan Dahlin2008-07-171-1/+1
| | | | | | | | | | | | | | | | | 2008-07-17 Johan Dahlin <johan@gnome.org> * gio/giomodule.c (init_gio): Use the prefix G_IO_ for stripping constants instead of just G_ * gobject/gobjectmodule.c (pyg_constant_strip_prefix): Check so the fist part of name and strip_prefix are the same, if they don't, just strip of the part of strip_prefix which matches. This removes the initial IO_* prefix for some constants in gio. Eg, gio.IO_ERROR_* -> gio.ERROR_* svn path=/trunk/; revision=817
* wrap File.load_contents_async and File.load_contents_finish with docsstrings ↵Gian Mario Tagliaretti2008-07-142-2/+91
| | | | | | and a test svn path=/trunk/; revision=802
* Remove g_file_input_stream_seek and g_file_output_stream_seek, theyJohan Dahlin2008-07-141-24/+0
| | | | | | | | | | | 2008-07-14 Johan Dahlin <johan@gnome.org> * gio/gio.defs: Remove g_file_input_stream_seek and g_file_output_stream_seek, they already implement the seekable interface. svn path=/trunk/; revision=800
* Map GSeekType to an intJohan Dahlin2008-07-143-0/+10
| | | | | | | | | | | | | | | 2008-07-14 Johan Dahlin <johan@gnome.org> * codegen/argtypes.py: Map GSeekType to an int * gio/gfileinfo.override: * gio/ginputstream.override: * gio/goutputstream.override: Add comments for missing API svn path=/trunk/; revision=798
* Refactor cancellable check to a utility function, avoidsJohan Dahlin2008-07-147-84/+104
| | | | | | | | | | | | | | | | 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
* wrap File.load_contents with docstringsGian Mario Tagliaretti2008-07-112-19/+74
| | | | svn path=/trunk/; revision=793
* Sort out confusion between interfaces and objects, add test. Fixes #538601Johan Dahlin2008-06-171-16/+17
| | | | | | | | | | | | 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
* Add default values for all GSeekType variables.Johan Dahlin2008-05-231-3/+3
| | | | | | | | | | 2008-05-23 Johan Dahlin <jdahlin@async.com.br> * gio/gio.defs: Add default values for all GSeekType variables. svn path=/trunk/; revision=784
* document. Add default values to all flags parameters.Johan Dahlin2008-04-111-24/+37
| | | | | | | | | | 2008-04-11 Johan Dahlin <jdahlin@async.com.br> * gio/gio.defs (write_async): document. Add default values to all flags parameters. svn path=/trunk/; revision=776
* document. Set io_priority default to G_PRIORITY_DEFAULT.Johan Dahlin2008-04-111-23/+42
| | | | | | | | | | 2008-04-11 Johan Dahlin <johan@gnome.org> * gio/gio.defs (read_async, read): document. Set io_priority default to G_PRIORITY_DEFAULT. svn path=/trunk/; revision=775
* Move around the order of the callback argument to async methods, so itJohan Dahlin2008-04-113-83/+117
| | | | | | | | | | | | | | | 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
* Implement GAppInfo constructor, add tests.Johan Dahlin2008-04-085-5/+86
| | | | | | | | | | | | | | | 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-084-13/+67
| | | | | | | | | | | | | | | 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-082-0/+37
| | | | | | | | | | | | | 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-083-0/+42
| | | | | | | | | | | | | | 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
* Fix a couple of silly typos and use gio.File instead of GFile inJohan Dahlin2008-04-081-7/+8
| | | | | | | | | | 2008-04-08 Johan Dahlin <johan@gnome.org> * gio/gfile.override (_wrap__install_file_meta): Fix a couple of silly typos and use gio.File instead of GFile in exceptions. svn path=/trunk/; revision=765
* Make gio.File() (calling on an interface) a factory for creating files.Johan Dahlin2008-04-074-1/+110
| | | | | | | | | | | | | | | 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
* Install gio in the right locationJohan Dahlin2008-04-071-2/+2
| | | | | | | | | 2008-04-07 Johan Dahlin <johan@gnome.org> * gio/Makefile.am (pygiodir): Install gio in the right location svn path=/trunk/; revision=763
* Add wrappers.Johan Dahlin2008-04-062-0/+166
| | | | | | | | | | | | 2008-04-06 Johan Dahlin <johan@gnome.org> * gio/goutputstream.override: (_wrap_g_output_stream_write_asyn,_wrap_g_output_stream_close_async): * gio/ginputstream.override (async_result_callback_marshal_read): Add wrappers. svn path=/trunk/; revision=761
* 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
* Remove g_file_output_stream_truncate, g_file_output_stream_tell andJohan Dahlin2008-04-061-24/+0
| | | | | | | | | | 2008-04-06 Johan Dahlin <johan@gnome.org> * gio/gio.defs: Remove g_file_output_stream_truncate, g_file_output_stream_tell and g_file_input_stream_tell svn path=/trunk/; revision=759
* Implement the python iteration protocol on GFileEnumeratorJohan Dahlin2008-04-062-0/+50
| | | | | | | | | | | 2008-04-06 Johan Dahlin <johan@gnome.org> * Makefile.am: * gio/gfileenumerator.override (_wrap_g_file_enumerator_tp_iter): Implement the python iteration protocol on GFileEnumerator svn path=/trunk/; revision=758
* Fix the buildJohan Dahlin2008-03-221-9/+3
| | | | svn path=/trunk/; revision=754
* Make read_finish() return the string, remove the get_buffer method. ThisJohan Dahlin2008-03-222-27/+101
| | | | | | | | | | | | | | | | 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