| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-20 Johan Dahlin <johan@gnome.org>
* glib/Makefile.am:
* glib/glibmodule.c (pyglib_main_context_default), (init_glib):
* glib/pyglib.c (pyglib_init), (pyglib_threads_enabled),
(pyglib_main_context_new):
* glib/pyglib.h:
* glib/pygmaincontext.c (_wrap_g_main_context_iteration),
(pyglib_maincontext_register_types):
* glib/pygmaincontext.h:
* glib/pygmainloop.c (pyg_signal_watch_prepare),
(pyg_signal_watch_check), (pyg_main_loop_new),
(_wrap_g_main_loop_get_context), (_wrap_g_main_loop_run),
(pyglib_mainloop_register_types):
* glib/pygmainloop.h:
* gobject/Makefile.am:
* gobject/__init__.py:
* gobject/gobjectmodule.c (pyg_destroy_notify), (pyobject_free),
(pyg_object_set_property), (pyg_object_get_property),
(_pyg_signal_accumulator), (pygobject__g_instance_init),
(pyg_handler_marshal), (pygobject_gil_state_ensure),
(pygobject_gil_state_release), (marshal_emission_hook),
(_log_func), (init_gobject):
* gobject/pygboxed.c (pyg_boxed_dealloc), (pyg_boxed_new):
* gobject/pygenum.c (pyg_enum_add):
* gobject/pygflags.c (pyg_flags_add):
* gobject/pygiochannel.c (pyg_iowatch_marshal):
* gobject/pygmaincontext.c:
* gobject/pygmainloop.c:
* gobject/pygobject-private.h:
* gobject/pygobject.c (pygobject_data_free), (pyg_toggle_notify),
(pygobject_new_with_interfaces), (pygobject_weak_ref_notify):
* gobject/pygobject.h:
* gobject/pygoptiongroup.c (destroy_g_group), (arg_func):
* gobject/pygpointer.c (pyg_pointer_new):
* gobject/pygsource.c (pyg_source_get_context),
(pyg_source_prepare), (pyg_source_check), (pyg_source_dispatch),
(pyg_source_finalize):
* gobject/pygtype.c (pyg_closure_invalidate),
(pyg_closure_marshal), (pyg_signal_class_closure_marshal):
* tests/common.py:
Move maincontext and mainloop over to glib.
Update the threadstate api to use the variant in glib.
svn path=/trunk/; revision=843
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
2008-07-15 Johan Dahlin <johan@gnome.org>
* tests/Makefile.am:
Make sure we can distcheck the gio module properly
svn path=/trunk/; revision=808
|
|
|
|
|
|
| |
and a test
svn path=/trunk/; revision=802
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-07-14 Johan Dahlin <johan@gnome.org>
Bug 504337 - crash bug in gobject.Timeout and gobject.Idle
* gobject/pygsource.c:
* tests/test_source.py:
Fix crash in Timeout and Idle, patch by Bryan Silverthorn.
svn path=/trunk/; revision=799
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-04-15 Johan Dahlin <johan@gnome.org>
* gobject/gobjectmodule.c (init_gobject): Set
gobject.GObject.__module__ to gobject._gobject, this
helps pylint to check public methods of GObject subclasses
* tests/Makefile.am (tests):
* tests/test_gobject.py (TestGObjectAPI.testGObjectModule):
Add a test for this
(#523821, Simon Schampijer)
svn path=/trunk/; revision=777
|
|
|
|
| |
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 <jdahlin@async.com.br>
* gobject/option.py: Fix a typo
* tests/test_option.py:
Update the tests after the latest "refactoring".
The testsuite should run fine now again, finally.
svn path=/trunk/; revision=770
|
|
|
|
|
|
|
|
|
|
|
|
| |
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-08 Johan Dahlin <jdahlin@async.com.br>
* gobject/pygsource.c:
* tests/test_source.py:
Unbreak Source.prepare (#523075, Bryan Silverthorn)
svn path=/trunk/; revision=766
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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-04-02 Paul Pogonyshev <pogonyshev@gmx.net>
* gobject/pygenum.c: bug #428732
(pyg_enum_new): Fix two wrong assertions about '__enum_values__'
size and contents.
(pyg_enum_reduce): New function (based on patch by Phil Dumont).
(pyg_enum_methods): Hook it up.
svn path=/trunk/; revision=756
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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-21 Johan Dahlin <johan@gnome.org>
* gobject/__init__.py:
* tests/test_properties.py:
Allow gobject.property work with subclasses. Add tests.
(#523352, Tomeu Vizoso)
svn path=/trunk/; revision=752
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
2008-01-20 Johan Dahlin <johan@gnome.org>
* tests/test_gio.py (TestVolumeMonitor): New test
svn path=/trunk/; revision=743
|
|
|
|
| |
svn path=/trunk/; revision=742
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-01-20 Johan Dahlin <johan@gnome.org>
* gio/gio.override (_wrap_g_simple_async_result_get_buffer): Add
a new method, to fetch the buffer
(_wrap_g_input_stream_read_async): Save a reference to the buffer.
* tests/test_gio.py (TestInputStream.testReadAsync.callback):
Check the content
svn path=/trunk/; revision=740
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-01-20 Johan Dahlin <johan@gnome.org>
* tests/test_gio.py (TestInputStream.testReadAsyncError):
New function to test error condition of async read.
* gio/gio.override (async_result_callback_marshal): Grab a reference
to callback/data.
svn path=/trunk/; revision=739
|
|
|
|
| |
svn path=/trunk/; revision=738
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2008-01-19 Johan Dahlin <johan@gnome.org>
* gio/gio.override (_wrap_g_output_stream_write): Impl.
* gio/gio.override:
* gio/unix.defs:
Add GUnixInputStream type and methods
* tests/common.py:
* tests/test_gio.py:
Add GIO tests.
svn path=/trunk/; revision=737
|
|
|
|
|
|
|
|
|
|
|
| |
2007-11-12 Johan Dahlin <johan@gnome.org>
* gobject/option.py (OptionParser.parse_args):
Set the default value of old_args to 0, so we don't end
up slicing with None. Fixes #496278 (Vincent Untz)
svn path=/trunk/; revision=718
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-11-06 Johan Dahlin <johan@gnome.org>
* gobject/option.py (OptionParser.parse_args): Merge in values
from all groups to the global option group. Slice up args
so it doesn't return too much.
* tests/test_option.py: Refactor to be unittesty,
Add new tests to test what options returns.
svn path=/trunk/; revision=717
|
|
|
|
| |
svn path=/trunk/; revision=715
|
|
|
|
|
|
|
|
|
|
|
| |
2007-08-27 Johan Dahlin <jdahlin@async.com.br>
* gobject/__init__.py (GObjectMeta._install_properties):
Refactor a bit to make sure that it is possible to use in subclasses,
fixes #470718 (Marco Giusti)
svn path=/trunk/; revision=699
|
|
|
|
| |
svn path=/trunk/; revision=698
|
|
|
|
| |
svn path=/trunk/; revision=697
|
|
|
|
| |
svn path=/trunk/; revision=693
|
|
|
|
| |
svn path=/trunk/; revision=681
|
|
|
|
|
|
| |
(marshal/unmarshal for GValue-wrapped GValue)
svn path=/trunk/; revision=680
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-07-02 Sebastian Granjoux <seb.sfo@free.fr>
reviewed by: Johan Dahlin
* gobject/gobjectmodule.c: (pyg_gerror_exception_check):
* tests/test_gtype.py:
* tests/testhelpermodule.c: (_wrap_test_gerror_exception):
Fix a bug in pyg_error_exception_check, add a test, Fixes #449879
svn path=/trunk/; revision=678
|
|
|
|
|
|
| |
subclassing
svn path=/trunk/; revision=677
|
|
|
|
| |
svn path=/trunk/; revision=675
|
|
|
|
| |
svn path=/trunk/; revision=672
|
|
|
|
|
|
|
|
|
|
| |
* gobject/propertyhelper.py:
* tests/test_properties.py:
Store property values in the descriptor per instance, add a test.
svn path=/trunk/; revision=665
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* examples/properties.py:
* gobject/Makefile.am:
* gobject/__init__.py:
* gobject/constants.py.in:
* gobject/generate-constants.c: (main):
* gobject/propertyhelper.py:
* tests/Makefile.am:
* tests/test_enum.py:
* tests/test_interface.py:
* tests/test_properties.py:
Add a property helper, fixes #338098
svn path=/trunk/; revision=662
|
|
|
|
| |
svn path=/trunk/; revision=660
|
|
|
|
| |
svn path=/trunk/; revision=659
|
|
|
|
| |
svn path=/trunk/; revision=658
|