summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* gtk/*.overrideJohan Dahlin2004-07-175-3/+20
| | | | | | | | | | | | | | | | | | | | * gtk/*.override * codegen/codegen.py: * codegen/argtypes.py: Update for enums * pygtype.c (pyg_value_as_pyobject): Use new enum/flag functions * pygenum.[ch]: Handle GFlag * pygflags.[ch]: Handle GFlag * atk-types.defs: Fix gtype-id for all enums * gobjectmodule.c (initgobject): Clean up and add convinience macros * tests/enum.py: New file * tests/common.py: New file, also stole from gst-python
* New script to run all tests in one takeJohan Dahlin2004-07-107-77/+125
| | | | | | | | | * tests/runtests.py: New script to run all tests in one take * tests/Makefile.am: autotoolify * tests/signal.py: New simple test taken from examples/gobject/signal.py
* New conversion functions that use GParamSpec's declarations of new paramJohn Ehresman2004-07-051-2/+2
| | | | | | | | | | | | | | | | | * pygtype.c (pyg_param_gvalue_from_pyobject, pyg_param_gvalue_as_pyobject): New conversion functions that use GParamSpec's * pygobject.h, pygobject-private.h: declarations of new param conversion functions * pygobject.c (pygobject_get_property, pygobject_set_property): Use param conversion functions * gobjectmodule.c (pyg_parse_constructor_args): reorder local variable declaration so it will compile with VC++ * tests/testconversion.py: tests for above
* tests directory: unit testsJohn Ehresman2004-07-042-0/+77