summaryrefslogtreecommitdiffstats
path: root/gio
Commit message (Collapse)AuthorAgeFilesLines
...
* Bug 546591 – File.copy progress_callback does not workPaul Pogonyshev2008-08-092-14/+16
| | | | | | | | | | | | | | | | | | | | | 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-094-148/+373
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Bug 546734 – Missing Py_INCREFs for some file async methodsJonathan Matthew2008-08-071-0/+10
| | | | | | | | | | | | | 2008-08-07 Jonathan Matthew <jonathan@d14n.org> Bug 546734 – Missing Py_INCREFs for some file async methods * gio/gfile.override: Increment refcounts on callbacks and callback data for append_to_async, create_async, replace_async, query_info_async and load_contents_async as for all other async methods. svn path=/trunk/; revision=929
* Move the progress callback for move/copy so it's consistent with theJohan Dahlin2008-08-062-6/+8
| | | | | | | | | | | | 2008-08-06 Johan Dahlin <johan@gnome.org> * gio/gfile.override: * gio/gio.defs: Move the progress callback for move/copy so it's consistent with the documentation and positional arguments. Update documentation as well svn path=/trunk/; revision=928
* 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-052-0/+133
| | | | | | | | | | | | | | | | | 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
* Wrap GFile.replace_async and query_info_async with docs and test.Gian Mario Tagliaretti2008-08-032-2/+115
| | | | svn path=/trunk/; revision=923
* Fix a copy/paste pattern...Gian Mario Tagliaretti2008-08-021-42/+0
| | | | svn path=/trunk/; revision=921
* Wrap GFile.create_async with docs and testGian Mario Tagliaretti2008-08-022-1/+95
| | | | svn path=/trunk/; revision=920
* Do not include gio-types.defsJohan Dahlin2008-08-021-2/+0
| | | | svn path=/trunk/; revision=916
* Remove SGML support, require python 2.4, modernize, PEP-8ify. Make it runJohan Dahlin2008-08-021-0/+1
| | | | | | | | | | | | | | | | | 2008-08-02 Johan Dahlin <johan@gnome.org> * codegen/docgen.py: Remove SGML support, require python 2.4, modernize, PEP-8ify. Make it run on gio. * codegen/definitions.py: Make property iterable * gio/gio.defs: Include the gio-types.defs file. svn path=/trunk/; revision=914
* Wrap GFile.append_to_async with docs and testGian Mario Tagliaretti2008-08-022-1/+53
| | | | svn path=/trunk/; revision=912
* Add pyglib_float_from_timeval and use itJohan Dahlin2008-08-022-4/+2
| | | | | | | | | | | | | | 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 GFile.query_writable_namespaces with docs and testGian Mario Tagliaretti2008-08-012-1/+55
| | | | svn path=/trunk/; revision=909
* Wrap gio.File.moveJohan Dahlin2008-08-011-0/+39
| | | | | | | | | | | | 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
* Wrap gio.Volume.mount and gio.Volume.ejectJohan Dahlin2008-08-015-5/+234
| | | | | | | | | | | | | | 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
* Add docstring for gio.FileInfo.list_attributesGian Mario Tagliaretti2008-08-011-0/+4
| | | | svn path=/trunk/; revision=906
* Bug 545861 – g_file_info_get_modification_time is missingJohan Dahlin2008-08-012-1/+17
| | | | | | | | | | | | | 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
* 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