summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* New test.Johan Dahlin2005-03-166-6/+51
| | | | | | * tests/test_radiobutton.py (RadioButtonTest): New test. * tests: Renamed *.py to test_*.py
* Make the build of atk, pango and gtk conditional. Fixes bug #74144.PYGTK_2_5_2Johan Dahlin2005-01-102-2/+7
| | | | | | | | | | | | * .cvsignore: * Makefile.am: * configure.in: * gtk/Makefile.am: * pygtk-2.0.pc.in: * setup.py: * tests/common.py: * tests/testhelpermodule.c: Make the build of atk, pango and gtk conditional. Fixes bug #74144.
* Make testsuite work and do things the way they were supposed to be doneJohan Dahlin2005-01-104-25/+75
| | | | | | | | * tests/Makefile.am: * tests/common.py: * tests/runtests.py: * tests/test_thread.py: Make testsuite work and do things the way they were supposed to be done from the beginning.
* gobject.child_add_watch and gobject.spawn_asyncGustavo J. A. M. Carneiro2005-01-092-0/+27
|
* Add test script for bug #162874.Adam Hooper2005-01-091-0/+127
|
* Add pygtk_postinstall.py Updated Deprecate gtk.idle_add and friends. MergeJohan Dahlin2005-01-081-2/+2
| | | | | | | | | * Makefile.am: Add pygtk_postinstall.py * docs/random/missing-symbols: Updated * gtk/__init__.py: Deprecate gtk.idle_add and friends. * gtk/gtk.defs: Merge in 2.6 api, for GtkLabel functions, thanks to Gian Mario Tagliaretti, fixes bug #163296 * tests/test_thread.py: Don't use gtk.idle_add
* 2.5.0PYGTK_2_5_0Johan Dahlin2004-11-291-1/+1
|
* Use PyTuple_GetSlice and PyArg_ParseTuple here, so we can get the samepygtk-2-4-anchorPYGTK_2_4_1Johan Dahlin2004-11-042-1/+17
| | | | | | | | * gtk/gtk.override (_wrap_gtk_dialog_add_buttons): Use PyTuple_GetSlice and PyArg_ParseTuple here, so we can get the same behavior as in add_button. Reported by Maciej Katafiasz, fixes #156707 * tests/test_dialog.py: Add test for it
* Add tests for dynamic/unknown objects and interfacesJohan Dahlin2004-11-048-115/+247
|