| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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-03-08 Gian Mario Tagliaretti <gianmt@gnome.org>
* gio/gio.defs: add g_cancellable_make_pollfd
svn path=/trunk/; revision=1022
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
svn path=/trunk/; revision=1004
|
|
|
|
| |
svn path=/trunk/; revision=1003
|
|
|
|
| |
svn path=/trunk/; revision=1002
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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-07 Paul Pogonyshev <pogonyshev@gmx.net>
Bug 566744 – _wrap_g_input_stream_read_async() argument parsing
has incorrect keyword args
* gio/ginputstream.override (_wrap_g_input_stream_read_async): Fix
keyword list to be in sync with positional arguments.
svn path=/trunk/; revision=994
|
|
|
|
| |
svn path=/trunk/; revision=993
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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-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
|
|
|
|
| |
svn path=/trunk/; revision=971
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
2008-09-07 Frederic Peters <fpeters@0d.be>
* gio/gfile.override (_wrap_g_file_load_contents)
(_wrap_g_file_load_contents_finish): Fix typos breaking
compilation (bug #551212).
svn path=/trunk/; revision=966
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-09-07 Jonathan Matthew <jonathan@d14n.org>
Bug 551059 – GFile load_contents methods chop data at first \0
* gio/gfile.override:
Use 's#' (length specified) rather than 's' when constructing
result values in load_contents and load_contents_finish.
svn path=/trunk/; revision=965
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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-16 Paul Pogonyshev <pogonyshev@gmx.net>
* gio/gfile.override (_wrap_g_file_enumerate_children_async): Fix
keywords getting out of sync with actual argument order.
svn path=/trunk/; revision=949
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn path=/trunk/; revision=945
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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-12 Paul Pogonyshev <pogonyshev@gmx.net>
* gio/gio.override: Ignore `g_io_module*' and `g_io_scheduler_*'.
svn path=/trunk/; revision=943
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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-11 Paul Pogonyshev <pogonyshev@gmx.net>
Bug 547104 – improve type wrapper creation
* gobject/pygobject.c (pygobject_register_class): Use new
pygobject_inherit_slots() to propagate custom slots in normal
types too.
(pygobject_inherit_slots): New function, break out of
pygobject_new_with_interfaces() and rewrite a bit.
(pygobject_find_slot_for): Add new argument that can forbid
overriding non-NULL slots.
* gio/gicon.override (pygio_do_icon_richcompare): Remove, the code
is now directly in _wrap_g_icon_tp_richcompare().
(_wrap_g_file_icon_tp_richcompare, _wrap_g_file_icon_tp_hash)
(_wrap_g_themed_icon_tp_richcompare, _wrap_g_themed_icon_tp_hash):
Remove, duplicating code in this way is not needed anymore.
svn path=/trunk/; revision=940
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 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
|
|
|
|
| |
svn path=/trunk/; revision=936
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn path=/trunk/; revision=923
|
|
|
|
| |
svn path=/trunk/; revision=921
|
|
|
|
| |
svn path=/trunk/; revision=920
|
|
|
|
| |
svn path=/trunk/; revision=916
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn path=/trunk/; revision=912
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
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-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
|
|
|
|
| |
svn path=/trunk/; revision=906
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|