| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-04-29 James Livingstone <doclivingstone@gmail.com>
reviewed by: Johan Dahlin <johan@gnome.org>
* gobject/pygtype.c: (pyg_value_from_pyobject):
* tests/test_signal.py:
Add a missing else to avoid throwing a TypeError.
Includes a test written by Ed Catmur.
Fixes #374653
svn path=/trunk/; revision=657
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-04-29 Johan Dahlin <johan@gnome.org>
* gobject/pygtype.c: (pyg_value_array_from_pyobject):
* tests/test_gtype.py:
* tests/testhelpermodule.c: (_wrap_test_value_array):
Treat None in a GValueArray as pointer/NULL, patch by
Ed Catmur, fixes #352209.
svn path=/trunk/; revision=656
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-04-29 Damien Carbery <damien.carbery@sun.com>
reviewed by: Johan Dahlin <johan@gnome.org>
* tests/test-unknown.c: (test_interface_iface_method):
Do not return in a void function, fixes #385127
svn path=/trunk/; revision=654
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-04-29 Johan Dahlin <jdahlin@async.com.br>
* README:
* configure.ac:
* gobject/Makefile.am:
* gobject/ffi-marshaller.c: (g_value_to_ffi_type),
(g_value_from_ffi_type), (g_cclosure_marshal_generic_ffi):
* gobject/ffi-marshaller.h:
* gobject/gobjectmodule.c: (create_signal), (init_gobject):
* pygobject-2.0.pc.in:
* tests/test_signal.py:
* tests/testhelpermodule.c: (test1_callback),
(test1_callback_swapped), (test2_callback), (test3_callback),
(test4_callback), (test_float_callback), (test_double_callback),
(test_string_callback), (test_object_callback), (connectcallbacks),
(_wrap_connectcallbacks), (inittesthelper):
Add a generic CClosure marshaller based on ffi.
This makes it possible to connect to signals on PyGObjects from C.
libffi is now an optional dependency
Fixes #353816 (Edward Hervey)
svn path=/trunk/; revision=651
|
|
|
|
| |
svn path=/trunk/; revision=647
|
|
|
|
| |
svn path=/trunk/; revision=642
|
|
|
|
| |
svn path=/trunk/; revision=636
|
|
|
|
|
|
|
| |
* gobject/pygoptiongroup.c (pyg_option_group_dealloc):
* tests/test_option.py (TestOption.testBadConstructor):
Make sure an exception is raised when we pass in invalid arguments
to the optiongroup constructor, add a test. #364576 (Laszlo Pandy)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-11-18 Yevgen Muntyan <muntyan@tamu.edu>
reviewed by: Johan Dahlin <johan@gnome.org>
* gobject/gobjectmodule.c: (create_property):
* gobject/pygparamspec.c: (pyg_param_spec_getattr):
* tests/test_properties.py:
Avoid truncating in pyg_param_spec_getattr, add test for all non-float
numeric types. Fixes #353943
|
|
|
|
|
|
| |
* gobject/pygtype.c (gclosure_from_pyfunc): Use PyObject_Cmp instead
of comparing function closure addresses, which makes it possible
to use any callable and not just functions. Fixes #375589 (Dima)
|
| |
|
| |
|
| |
|
|
|
|
| |
from constructor
|
| |
|
| |
|
|
|
|
| |
Add support for G_TYPE_GSTRING, at least in signals.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-04-29 Johannes Hölzl <johannes.hoelzl@gmx.de>
reviewed by: Johan Dahlin <jdahlin@async.com.br>
* examples/Makefile.am:
* examples/option.py:
* gobject/Makefile.am:
* gobject/gobjectmodule.c: (init_gobject):
* gobject/option.py:
* gobject/pygobject-private.h:
* gobject/pygoptioncontext.c: (pyg_option_context_init),
(pyg_option_context_dealloc), (pyg_option_context_parse),
(pyg_option_context_set_help_enabled),
(pyg_option_context_get_help_enabled),
(pyg_option_context_set_ignore_unknown_options),
(pyg_option_context_get_ignore_unknown_options),
(pyg_option_context_set_main_group),
(pyg_option_context_get_main_group),
(pyg_option_context_add_group), (pyg_option_context_compare),
(pyg_option_context_new):
* gobject/pygoptiongroup.c: (check_if_owned), (destroy_g_group),
(pyg_option_group_init), (pyg_option_group_dealloc), (arg_func),
(pyg_option_group_add_entries),
(pyg_option_group_set_translation_domain),
(pyg_option_group_compare), (pyg_option_group_transfer_group),
(pyg_option_group_new):
* tests/test_option.py:
Add support for GOption, fixes #163645
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gobject/pygtype.c (gclosure_from_pyfunc):
* gobject/pygobject.c (pygobject_disconnect_by_func)
(pygobject_handler_block_by_func)
(pygobject_handler_unblock_by_func):
* tests/test_signal.py (TestEmissionHook._callback):
Fix #154845, add tests and a private method.
|
|
|
|
|
| |
* tests/common.py (importModule): Include original exception
string in the raised SystemExit.
|
|
|
|
| |
add gobject/__init__.py. Update macros and testsuite.
|
| |
|
| |
|