summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Raise an exception if a construct only property is set after constructionJohan Dahlin2005-07-101-29/+53
| | | | | | | | | * gobject/pygobject.c: (PyGProps_setattro), (pygobject_set_property): * tests/test_properties.py: Raise an exception if a construct only property is set after construction time. Refactor property setting code and add some more tests.
* gobject/pygobject-private.h gobject/gobjectmodule.c gobject/Makefile.amManish Singh2005-07-102-1/+68
| | | | | | | | | | | | | | | | | | * gobject/pygobject-private.h * gobject/gobjectmodule.c * gobject/Makefile.am * gobject/pygsource.c: GSource wrapper, allows for pure python GSource implementations, as well as objectifying Idle and Timeout sources. * tests/Makefile.am * tests/test_source.py: Add test for the above. * gobject/gobjectmodule.c: timeout_add should take an explicit unsigned value. Also wrap g_get_current_time and g_main_depth. * gobject/pygiochannel.c (py_io_channel_write_chars): fix thread unblock/block logic.
* Remove gtk_ prefix on a couple of (unwrapped) functionsJohan Dahlin2005-07-091-15/+13
| | | | | | | | | | | | | | | | * gtk/gtk.defs: Remove gtk_ prefix on a couple of (unwrapped) functions * gtk/gtk-types.defs: (IconViewDropPosition, PackDirection): Add. * gtk/gtkiconview.override: (_wrap_gtk_icon_view_enable_model_drag_dest) (_wrap_gtk_icon_view_enable_model_drag_source) (_wrap_gtk_icon_view_get_dest_item_at_pos) (_wrap_gtk_icon_view_get_drag_dest_item) (_wrap_gtk_icon_view_get_cursor) (_wrap_gtk_icon_view_get_visible_range) (_wrap_gtk_icon_view_get_item_at_pos): Impl.
* Bug 161177: Allow creation of python classes from g_object_newGustavo J. A. M. Carneiro2005-07-096-11/+145
|
* Merge new Gdk & Gtk API. pango.Renderer and functions/methods also added.Johan Dahlin2005-07-083-2/+5
| | | | | | | | | | | | | * configure.in: * gtk/Makefile.am: * gtk/gdk-types.defs: * gtk/gdk.defs: * gtk/gdk.override: * gtk/gtk.defs: * pango-types.defs: * pango.defs: Merge new Gdk & Gtk API. pango.Renderer and functions/methods also added. Bump required glib,gtk & pango versions.
* And unittest..Johan Dahlin2005-07-081-0/+54
|
* Add GObject support, patch mostly based on Iñaki and Gustavos work.Johan Dahlin2005-07-081-0/+1
| | | | | | | | | | | | | * gobject/gobjectmodule.c: (initgobject): * gobject/pygobject-private.h: * gobject/pygobject.c: (pyg_props_iter_dealloc), (pygobject_props_iter_next), (PyGProps_dealloc), (build_parameter_list), (PyGProps_getattro), (PyGProps_setattro), (pygobject_props_traverse), (pygobject_props_get_iter), (PyGProps_length), (pyg_props_descr_descr_get): * tests/Makefile.am: Add GObject support, patch mostly based on Iñaki and Gustavos work. Unittests added, fixes #81879
* Add GType.is_a and deprecate gobject.type_* Update tests and makeJohan Dahlin2005-07-053-25/+27
| | | | | | | | | | | | | * gobject/gobjectmodule.c: (pyg_type_name), (pyg_type_from_name), (pyg_type_parent), (pyg_type_is_a), (pyg_type_children), (pyg_type_interfaces), (get_type_name_for_class), (initgobject): * gobject/pygtype.c: (_wrap_g_type_is_a), (pyg_type_wrapper_init): * tests/test_enum.py: * tests/test_gtype.py: * tests/test_unknown.py: Add GType.is_a and deprecate gobject.type_* Update tests and make GType.is_a/gobject.type_is_a return a bool instead of int
* Add support for specifying name for a GObject subclass, usingJohan Dahlin2005-07-051-1/+8
| | | | | | | | | | | * gobject/gobjectmodule.c: (_wrap_pyg_type_register), (get_type_name_for_class), (pyg_type_register): * gobject/pygobject-private.h: * gobject/pygobject.c: (pygobjectmeta_register), (pygobjectmeta_init): * tests/test_gtype.py: Add support for specifying name for a GObject subclass, using __gtype_name__. Add a unittest. Fixes #169498
* Use pyg_param_gvalue_from_pyobject in gobject.new, fixes unicharJohan Dahlin2005-07-041-47/+61
| | | | | | | | * gobject/gobjectmodule.c: (pyg_object_new): * tests/test_conversion.py: Use pyg_param_gvalue_from_pyobject in gobject.new, fixes unichar parameters specified from the constructor. Added unittests.
* Bug 128765: GObject metaclassGustavo J. A. M. Carneiro2005-05-221-14/+16
|
* Add some commentsJohan Dahlin2005-05-091-14/+20
|
* Allow None to be passed in to: set_group for RadioAction.set_group(),Johan Dahlin2005-05-091-15/+76
| | | | | | | | | * gtk/gtk.override: Allow None to be passed in to: set_group for RadioAction.set_group(), RadioToolButton.set_group() and RadioMenuItem.set_group(). * tests/test_radiobutton.py: Refactor and add unittests for RadioAction, RadioToolButton and RadioMenuItem.
* And the testJohan Dahlin2005-05-091-0/+53
|
* Fix for bug #303573 - "exceptions raised in a child watch handler areMark McLoughlin2005-05-091-0/+1
| | | | | | | | | | | | | | | | | | 2005-05-09 Mark McLoughlin <mark@skynet.ie> Fix for bug #303573 - "exceptions raised in a child watch handler are silently swallowed" * gobject/gobjectmodule.c: (child_watch_func), (_pyg_spawn_async_callback): if PyObject_CallFunction() returns NULL, print a traceback of the exception. * tests/test_mainloop.py: add testcase. * tests/Makefile.am: add test_mainloop.py Reviewed by Johan Dahlin <johan@gnome.org>
* Clean up unused importsJohan Dahlin2005-05-091-3/+0
|
* Bug 302622: Assignment to gtk.gdk.Event.window is buggyGustavo J. A. M. Carneiro2005-05-022-0/+26
|
* fix make checkGustavo J. A. M. Carneiro2005-04-121-11/+10
|
* Regression, allow the second argument to be unspecified, fixes #171027Johan Dahlin2005-03-201-0/+24
| | | | | | | | * gtk/gtktreeview.override (_wrap_gtk_list_store_insert): Regression, allow the second argument to be unspecified, fixes #171027 (Ulrik Svensson) * tests/test_liststore.py: Add 2 new tests