summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove whitespace, add a bug referenceJohan Dahlin2007-04-301-3/+4
| | | | svn path=/trunk/; revision=659
* fix descriptor / toggle_ref interaction bugGustavo J. A. M. Carneiro2007-04-301-0/+12
| | | | svn path=/trunk/; revision=658
* reviewed by: Johan Dahlin <johan@gnome.org>James Livingstone2007-04-301-0/+15
| | | | | | | | | | | | | | | | 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
* Treat None in a GValueArray as pointer/NULL, patch by Ed Catmur, fixesJohan Dahlin2007-04-302-1/+28
| | | | | | | | | | | | | | 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
* reviewed by: Johan Dahlin <johan@gnome.org>Damien Carbery2007-04-301-1/+1
| | | | | | | | | | | | | 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
* Add a generic CClosure marshaller based on ffi. This makes it possible toJohan Dahlin2007-04-292-10/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Unit test for get/set_properties.Gustavo J. A. M. Carneiro2007-04-231-0/+8
| | | | svn path=/trunk/; revision=647
* Bug 320428 – Break PyGObject<->GObject reference cycleGustavo J. A. M. Carneiro2007-04-141-1/+185
| | | | svn path=/trunk/; revision=642
* Remove .cvsignore archivesJohan Dahlin2007-01-161-3/+0
| | | | svn path=/trunk/; revision=636
* Make sure an exception is raised when we pass in invalid arguments to theJohan Dahlin2006-11-181-1/+4
| | | | | | | * 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)
* reviewed by: Johan Dahlin <johan@gnome.org>Yevgen Muntyan2006-11-181-1/+73
| | | | | | | | | | | | | 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
* Use PyObject_Cmp instead of comparing function closure addresses, whichJohan Dahlin2006-11-181-10/+17
| | | | | | * 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)
* Add a test for #375589Johan Dahlin2006-11-181-0/+10
|
* some more emission hook testsGustavo J. A. M. Carneiro2006-09-161-0/+45
|
* interface fixes and testsGustavo J. A. M. Carneiro2006-08-272-3/+89
|
* Bug 353039 – Failure in signal emission during do_set_property invoked ↵Gustavo J. A. M. Carneiro2006-08-271-1/+29
| | | | from constructor
* Remove printJohan Dahlin2006-08-211-1/+0
|
* Add Interface implementation testJohan Dahlin2006-07-105-10/+296
|
* Bindings for g_filename_display_basename and g_filename_display_name;Gustavo J. A. M. Carneiro2006-06-241-0/+16
| | | | Add support for G_TYPE_GSTRING, at least in signals.
* gobject.new fix for 'subsubtype' caseGustavo J. A. M. Carneiro2006-05-281-2/+3
|
* Add a disabled test of subsubtypeJohan Dahlin2006-05-271-0/+14
|
* gobject.Pid.closeGustavo J. A. M. Carneiro2006-05-011-0/+1
|
* reviewed by: Johan Dahlin <jdahlin@async.com.br>Johannes Hölzl2006-04-291-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix #154845, add tests and a private method.Johan Dahlin2006-04-291-0/+29
| | | | | | | | | | | | * 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.
* Include original exception string in the raised SystemExit.Gustavo J. A. M. Carneiro2006-04-111-1/+1
| | | | | * tests/common.py (importModule): Include original exception string in the raised SystemExit.
* Turn gobject into a package; move _gobject to gobject._gobject andJohan Dahlin2006-04-112-15/+12
| | | | add gobject/__init__.py. Update macros and testsuite.
* reindentJohan Dahlin2006-04-1112-44/+43
|
* unit test for #335854Gustavo J. A. M. Carneiro2006-04-011-1/+11
|
* whitespaceJohan Dahlin2006-03-151-13/+13
|
* add enum/conversion herePYGOBJECT_2_9_1Johan Dahlin2006-01-171-0/+2
|
* Add add/remove_emission_hook and tests. Fixes #325977Johan Dahlin2006-01-131-0/+39
| | | | | | | | | | * gobject/gobjectmodule.c: (pyg_io_add_watch), (marshal_emission_hook), (pyg_add_emission_hook), (pyg_remove_emission_hook): * gobject/pygobject.c: * tests/test_signal.py: Add add/remove_emission_hook and tests. Fixes #325977
* signal accumulatorsGustavo J. A. M. Carneiro2006-01-112-1/+54
|
* Make dist/distcheck work againJohan Dahlin2006-01-091-1/+7
|
* Split out PyGObject from PyGTK.Johan Dahlin2006-01-0918-524/+44
|
* plug leak; add glade test; fix warning messageGustavo J. A. M. Carneiro2005-11-092-0/+34
|
* Add testJohan Dahlin2005-10-142-0/+13
| | | | | | | | | * tests/Makefile.am (tests): * tests/test_gdk.py: Add test * gtk/gdk.defs (pixmap_create_from_data) (bitmap_create_from_data): use guchar* instead of gchar, fixes #318874 (Bob Gibbs)
* guint64 property fixGustavo J. A. M. Carneiro2005-10-021-2/+3
|
* add (disabled) uint64 testJohan Dahlin2005-10-021-3/+19
|
* unit test for gobject.new error bugGustavo J. A. M. Carneiro2005-10-011-0/+3
|
* workaround gtk bug #317455Gustavo J. A. M. Carneiro2005-09-282-0/+15
|
* Bug 317172: gtk.glade.signal_autoconnect causes leaked objectsGustavo J. A. M. Carneiro2005-09-252-1/+30
|
* [Bug 315100] gobject.type_register if parameter is not a typeGustavo J. A. M. Carneiro2005-09-021-0/+3
|
* Refactor to allow us to list signals on interfaces.Johan Dahlin2005-08-261-0/+10
| | | | | | | * gobject/gobjectmodule.c (pyg_signal_list_ids): Refactor to allow us to list signals on interfaces. * tests/test_signal.py (TestList): Two new tests.
* Add test for Table.attach which takes uint arguments.Johan Dahlin2005-08-241-0/+12
| | | | | | | | | | | 2005-08-24 Johan Dahlin <jdahlin@async.com.br> * tests/test_conversion.py (Tests.testUIntArg): Add test for Table.attach which takes uint arguments. * codegen/argtypes.py (UIntArg.write_param): One more take on fixing #300012, this time unsigned int conversion, patch by Gustavo.
* Fix reference count of gtk.Window's from gobject.newGustavo J. A. M. Carneiro2005-07-311-0/+18
|
* Fixes Bug 311309: subclassing gtk.Bin reports...Gustavo J. A. M. Carneiro2005-07-301-0/+12
|
* Clean up tests, we don't need a C binding to access tp_basicsize, clean upJohan Dahlin2005-07-252-115/+55
| | | | | | | | * tests/test_subtype.py: * tests/testhelpermodule.c: (test_type_get_type), (_wrap_get_unknown), (_wrap_test_g_object_new), (inittesthelper): Clean up tests, we don't need a C binding to access tp_basicsize, clean up the C tests, quite a bit aswell.
* Re-enablePYGTK_2_7_1Johan Dahlin2005-07-222-16/+24
| | | | | | | * tests/test_radiobutton.py (RadioToolButtonTest): Re-enable * tests/test_dialog.py (MessageDialogTest.testSubclass): Add tests, for #311226.
* Allow enums to be specified in the constructor Return flags or enum objectJohan Dahlin2005-07-151-104/+145
| | | | | | | | | * gobject/gobjectmodule.c: (create_property): Allow enums to be specified in the constructor * gobject/pygparamspec.c: (pyg_param_spec_getattr): Return flags or enum object for pspec.default_value * tests/test_enum.py: Remove usage of assert statement, add default_value test, both for flags and enum
* Impl. Patch by Gustavo, fixes #155679PYGTK_2_7_0Johan Dahlin2005-07-101-2/+36
| | | | | | | | | * gtk/gtkwidget.override (_wrap_gtk_widget_set_set_scroll_adjustments_signal) (_wrap_gtk_widget_set_set_scroll_adjustments_signal): Impl. Patch by Gustavo, fixes #155679 * tests/test_signal.py (TestOldStyleOverride): Add unittests. Lazy Gustavo.