summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Apply slighly modified fix from bug 149845PYGTK_2_3_97Johan Dahlin2004-09-282-1/+5
| | | | | | This is make threading usable for both users of the threading module and users that requires interaction with threads from other extension modules.
* Forgot to commit this yesterdayJohan Dahlin2004-09-281-0/+24
|
* Add thread stuff, that emits stuff from another thread and does some enumJohan Dahlin2004-09-272-6/+135
| | | | | | * tests/testhelpermodule.c: * tests/test_thread.py: Add thread stuff, that emits stuff from another thread and does some enum magic.
* catch ImportError if glade is not found and set glade to NoneJohn Ehresman2004-09-271-1/+4
| | | | | * tests/common.py: catch ImportError if glade is not found and set glade to None
* Small c module to help testingJohan Dahlin2004-09-274-8/+59
| | | | | | | * tests/testhelper.c: Small c module to help testing * tests/test_subtype.py: tests for this, use testhelper here aswell
* Revert parts of Gustavos changes, so the size of interfaces are correct.Johan Dahlin2004-09-272-1/+15
| | | | | | | * codegen/codegen.py (FileOutput.resetline): Revert parts of Gustavos changes, so the size of interfaces are correct. * tests/test_subtype.py: tests for this.
* Move some tests from gtype and rename from signal.pyJohan Dahlin2004-09-253-7/+30
| | | | | * tests/test_signal.py: Move some tests from gtype and rename from signal.py
* Bug 153718: exception in overriden gsignals causes ref count problemsGustavo J. A. M. Carneiro2004-09-251-1/+7
|
* Tests for GdkColor constructionJohn Ehresman2004-09-221-0/+16
|
* Don't comment out the fallback, it break the test. (Wow, the testsuitePYGTK_2_3_96Johan Dahlin2004-08-061-2/+9
| | | | | | | | | | | | * gobject/pygflags.c (pyg_flags_from_gtype): Don't comment out the fallback, it break the test. (Wow, the testsuite caught another bug!) * tests/enum.py: Additional tests. * gobject/pygenum.c (pyg_enum_repr): Don't use g_enum_get_value, use enum_class->values[n].value_name instead. Also check if the value is NULL or not. This makes gtk.icon_size_register work a little bit better.
* Use methflags argument for defines instead of discarding itJohan Dahlin2004-08-061-1/+1
| | | | | * codegen/codegen.py (Wrapper.write_methods): Use methflags argument for defines instead of discarding it
* New test.Johan Dahlin2004-08-041-0/+3
| | | | | | | | * tests/enum.py (EnumTest.testOutofBounds): New test. * gobject/pygflags.c (pyg_flags_from_gtype): * gobject/pygenum.c (pyg_enum_from_gtype): Don't segfault on unknown values.
* Use gobject.type_name,type_from_name for testing instead of GtkListStore.Johan Dahlin2004-07-292-11/+11
| | | | | * tests/gtype.py (GTypeTest.checkType): Use gobject.type_name,type_from_name for testing instead of GtkListStore.
* s/e/enumJohan Dahlin2004-07-281-13/+13
|
* Reverse operatorJohan Dahlin2004-07-281-0/+30
| | | | | | | | * gobject/pygenum.c (pyg_enum_compare): * gobject/pygflags.c (pyg_flags_compare): Reverse operator * tests/enum.py (FlagsTest.testComparision) (FlagsTest.testComparision): New tests
* Test various other types aswellJohan Dahlin2004-07-281-7/+48
|
* If we're on python 2.3, also check for PyBool_Type.Johan Dahlin2004-07-282-0/+16
| | | | | | | * gobject/pygtype.c (pyg_type_from_object): If we're on python 2.3, also check for PyBool_Type. * tests/gtype.py (GTypeTest.testBoolType): New test
* Add, so Lorenzo can introspect flags properly tooPYGTK_2_3_94Johan Dahlin2004-07-211-12/+56
| | | | | | | | | | | * gobject/pygflags.c (pyg_flags_get_first_value_name) (pyg_flags_get_first_value_nick): Add, so Lorenzo can introspect flags properly too (pyg_flags_get_value_names, pyg_flags_get_value_nicks): Make this a little bit more useful. All values can still be fetch through __flags_values__ * tests/enum.py: Improve and extend to test most enum/flags operations
* Fix, a window is really WITHDRAWN if it's not SHOWN and not ICONIFIED...Johan Dahlin2004-07-193-4/+15
| | | | | | | | | | | | | | * tests/enum.py (EnumTest.testWindowGetState): Fix, a window is really WITHDRAWN if it's not SHOWN and not ICONIFIED... * tests/common.py: Add .. and ../gobject when distcheck isn't ran * gobject/pygenum.c: Use a dict instead of a tuple for __enum_values__, so we can handle negative enum values (eg: GDK_NOTHING) * gobject/pyflags.c: Ditto for __flag_values__ * gobject/pygparamspec.c (pyg_param_spec_getattr): reference count fixing
* Update, why do I even bother to update 3 different build systems?Johan Dahlin2004-07-192-0/+10
| | | | | | | | | | | * gobject/Makefile.am: * setup.py: * makefile.msc: Update, why do I even bother to update 3 different build systems? * gobject/: Split out GParamSpec, GMainLoop, GMainContext and GPointer to separate files. Also remove *.h files and go back to the old scheme (everything in pygobject.h)
* Remove, out of date since 0.6.x!Johan Dahlin2004-07-193-12/+10
| | | | | | * description.py: Remove, out of date since 0.6.x! * tests/Makefile.am, tests/common.py: Make distcheck pass
* add, forgot it in last commitJohan Dahlin2004-07-172-2/+93
| | | | | | * tests/enum.py: add, forgot it in last commit * gobject/: Move gobject source files in here.