summaryrefslogtreecommitdiffstats
path: root/tests/test_signal.py
Commit message (Collapse)AuthorAgeFilesLines
* Bug 540376 – No TypeError raised when type is NonePaul Pogonyshev2008-08-111-0/+10
| | | | | | | | | | | | | 2008-08-11 Paul Pogonyshev <pogonyshev@gmx.net> Bug 540376 – No TypeError raised when type is None * gobject/gobjectmodule.c (pyg_signal_new): Add check on second argument type. * tests/test_signal.py (TestSignalCreation): New test case. svn path=/trunk/; revision=942
* 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
* Add a generic CClosure marshaller based on ffi. This makes it possible toJohan Dahlin2007-04-291-1/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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
|
* Bug 353039 – Failure in signal emission during do_set_property invoked ↵Gustavo J. A. M. Carneiro2006-08-271-1/+29
| | | | from constructor
* 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.
* 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.
* reindentJohan Dahlin2006-04-111-1/+1
|
* whitespaceJohan Dahlin2006-03-151-13/+13
|
* 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-111-0/+52
|
* Split out PyGObject from PyGTK.Johan Dahlin2006-01-091-41/+1
|
* 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.
* 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.
* Bug 128765: GObject metaclassGustavo J. A. M. Carneiro2005-05-221-14/+16
|
* Move some tests from gtype and rename from signal.pyJohan Dahlin2004-09-251-0/+75
* tests/test_signal.py: Move some tests from gtype and rename from signal.py