summaryrefslogtreecommitdiffstats
path: root/gio/gio.defs
Commit message (Collapse)AuthorAgeFilesLines
* Make gio.Emblem constructor new-stylePaul Pogonyshev2009-06-151-2/+3
| | | | | Add optional 'origin' parameter. Expand gio.Emblem documentation and mark gio.emblem_new_with_origin as sort-of-deprecated.
* Add API appeared in 2.20 but not marked as such in gio docsGian Mario Tagliaretti2009-06-021-0/+30
|
* Wrap gio.DataInputStream.read_line_async and read_until_asyncPaul Pogonyshev2009-05-311-2/+2
| | | | | | | 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 gio 2.20 APIGian Mario Tagliaretti2009-05-251-0/+106
| | | | add the new API added in gio 2.20, some needs to be wrapped manually
* Swap first two arguments of gio.File.query_info_async()Paul Pogonyshev2009-04-281-1/+1
| | | | | | | 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.)
* should accept None for cancellable and set the default flag toGian Mario Tagliaretti2009-04-121-2/+2
| | | | | | | | | | 2009-04-12 Gian Mario Tagliaretti <gianmt@gnome.org> * gio/gio.defs: (g_file_monitor) should accept None for cancellable and set the default flag to G_FILE_MONITOR_NONE. svn path=/trunk/; revision=1059
* Add missing g_file_query_filesystem_info_async andGian Mario Tagliaretti2009-03-301-12/+23
| | | | | | | | | | 2009-03-31 Gian Mario Tagliaretti <gianmt@gnome.org> * gio/gio.defs: Add missing g_file_query_filesystem_info_async and g_file_query_filesystem_info_finish svn path=/trunk/; revision=1050
* Add g_volume_should_automountGian Mario Tagliaretti2009-03-281-0/+6
| | | | | | | | | 2009-03-29 Gian Mario Tagliaretti <gianmt@gnome.org> * gio/gio.defs: Add g_volume_should_automount svn path=/trunk/; revision=1037
* add a couple of convinence functions to convert from/to a python list andGian Mario Tagliaretti2009-03-281-14/+24
| | | | | | | | | | | | | | | | | | | | | | 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
* Add g_file_enumerator_get_container, new in 2.18Gian Mario Tagliaretti2009-03-221-0/+9
| | | | | | | | | 2009-03-22 Gian Mario Tagliaretti <gianmt@gnome.org> * gio/gio.defs: Add g_file_enumerator_get_container, new in 2.18 svn path=/trunk/; revision=1028
* add g_cancellable_make_pollfdGian Mario Tagliaretti2009-03-081-0/+9
| | | | | | | | | 2009-03-08 Gian Mario Tagliaretti <gianmt@gnome.org> * gio/gio.defs: add g_cancellable_make_pollfd svn path=/trunk/; revision=1022
* Bug 556250 again. I screwed up and gave misinformation about how to fixGustavo J. A. M. Carneiro2009-02-171-0/+1
| | | | | | | | | | * 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/+15
| | | | svn path=/trunk/; revision=1004
* Add 2.18 gio API.Gian Mario Tagliaretti2009-02-101-0/+195
| | | | svn path=/trunk/; revision=1003
* huge patch to fix memory leaks all over the place, fixes #568427Gian Mario Tagliaretti2009-02-081-1/+233
| | | | svn path=/trunk/; revision=1002
* Define methods.Mads Chr. Olesen2009-01-041-0/+37
| | | | | | | | | | | | | 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
* Rename from read(), document. (gio.InputStream.read): Rename fromPaul Pogonyshev2008-08-271-4/+61
| | | | | | | | | | | | | | | | | | | | | | | | 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/+16
| | | | | | | | | | | | | | | | 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
* Bug 547484 – wrap gio.DataInputStream.read_line and ...read_untilPaul Pogonyshev2008-08-121-0/+9
| | | | | | | | | | | | | | | 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/gio.defs (read_line, read_until): Document. * gio/ginputstream.override (_wrap_g_data_input_stream_read_line) (_wrap_g_data_input_stream_read_until): New functions. svn path=/trunk/; revision=947
* Bug 547354 – wrap a few memory stream methodsPaul Pogonyshev2008-08-111-1/+2
| | | | | | | | | | | | | | | | | | | | 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
* Bug 547134 – fix docstring line lengthJonathan Matthew2008-08-101-18/+28
| | | | | | | | | | | | 2008-08-10 Jonathan Matthew <jonathan@d14n.org> Bug 547134 – fix docstring line length * gio/gio.defs: Fix docstring line lengths so they don't wrap across lines in an 80 column terminal. svn path=/trunk/; revision=937
* Add GFile.query_default_handler which was missing from the defs.Gian Mario Tagliaretti2008-08-101-0/+10
| | | | svn path=/trunk/; revision=936
* Bug 547067 – add File.replace_contents, replace_contents_async,Jonathan Matthew2008-08-101-0/+31
| | | | | | | | | | | | | | | 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
* Bug 546135 – GIcon and implementations improvementsPaul Pogonyshev2008-08-091-2/+8
| | | | | | | | | | | | | | | 2008-08-09 Paul Pogonyshev <pogonyshev@gmx.net> Bug 546135 – GIcon and implementations improvements * gio/gio.defs (g_file_icon_new): Change from method of gio.File to constructor of gio.FileIcon. * tests/test_gicon.py (TestIcon.test_eq, Test_Eq.test_hash) (TestLoadableIcon.setUp): Adapt accordingly. (TestFileIcon): New test case. svn path=/trunk/; revision=933
* Bug 546135 – GIcon and implementations improvementsPaul Pogonyshev2008-08-091-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Move the progress callback for move/copy so it's consistent with theJohan Dahlin2008-08-061-0/+2
| | | | | | | | | | | | 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
* Wrap GFile.replace_async and query_info_async with docs and test.Gian Mario Tagliaretti2008-08-031-0/+20
| | | | svn path=/trunk/; revision=923
* Wrap GFile.create_async with docs and testGian Mario Tagliaretti2008-08-021-0/+10
| | | | 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-021-0/+9
| | | | svn path=/trunk/; revision=912
* Wrap GFile.query_writable_namespaces with docs and testGian Mario Tagliaretti2008-08-011-0/+10
| | | | 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-011-1/+23
| | | | | | | | | | | | | | 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-011-0/+3
| | | | | | | | | | | | | 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-011-0/+9
| | | | | | | | | | | | | | 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/+19
| | | | | | 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-9/+33
| | | | | | 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-0/+38
| | | | | | | | | | | | | | | | | 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
* Bind gio.Mount.unmount, gio.File.mount_mountable,Johan Dahlin2008-07-191-2/+44
| | | | | | | | | | | | | | | 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
* 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-181-0/+23
| | | | | | | | | | | | | | | 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
* Wrap gio.File.enumerate_children_async, add tests, docstring and anJohan Dahlin2008-07-181-0/+33
| | | | | | | | | | | | | | * 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
* wrap File.load_contents_async and File.load_contents_finish with docsstrings ↵Gian Mario Tagliaretti2008-07-141-0/+19
| | | | | | 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
* wrap File.load_contents with docstringsGian Mario Tagliaretti2008-07-111-17/+29
| | | | svn path=/trunk/; revision=793
* 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