| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
| |
See gtk commit 2244eeb7270f5a0b351aae98c19ddbc4d4b5bea7.
|
| |
|
|
|
|
|
|
|
|
| |
As pointed out in #85 we don't use strip_boolean_result() for the main
Gdk.Event struct while we do for the member structs.
But at this point int time I'm afraid that changing it will break existing code,
so just add some tests to document the difference and make sure it doesn't change.
|
| |
|
| |
|
|
|
|
|
| |
Take the chance and get rid of it. If someone misses them we can look into adding
some of it back.
|
|
|
|
|
|
|
| |
This contains the minimum changes needed to get the tests to pass using our
docker image which contains a build gtk master from today.
This also makes the gtk4 CI job fatal so we don't regress in this area.
|
|
|
|
|
|
|
|
|
|
|
| |
pytest will just import the files passed to it and try to run tests.
Since we need to run some setup code convert the tests directory to
a Python package and do the initialization in __init__.py. This makes
the init code (env vars, typelib search path, dbus) always run when
something from the package gets imported.
python3 setup.py build_tests # build pygobject and tests
py.test-3 tests/test_gi.py # run tests in test_gi.py only
|
|
|
|
|
|
| |
Python evaluates the code inside @unittest.skipIf decorator during
import time. Because Gtk is not installed it crashes while evaluating
'Gtk._version' where Gtk=None.
|
|
|
|
|
|
|
| |
Skip various tests which test things that are no longer available with gtk4.
Does not remove any deprecated overrides.
Disable gtk4 support in pygtkcompat. The porting path over gtk3 should be enough.
|
|
|
|
|
|
| |
This let to a window being shown when running the test suite.
https://bugzilla.gnome.org/show_bug.cgi?id=780812
|
|
|
|
|
|
|
|
|
|
|
|
| |
(in a msys2 environment)
* Replace LD_LIBRARY_PATH with gir code in runtests.py
* Remove unneeded runtests-windows.py
* Unset MSYSTEM to disable path separator hacks by msys2
* Set sys.path in runtests.py
* Skip various tests failing/hanging/crashing on Windows
https://bugzilla.gnome.org/show_bug.cgi?id=780396
|
|
|
|
|
|
|
| |
* Skip all tests which fail, crash or hang.
* Disable D-Bus in case dbus-run-session is not available.
https://bugzilla.gnome.org/show_bug.cgi?id=780396
|
|
|
|
|
|
|
| |
For example __name__ is now SpawnFlags instead of PyGLibSpawnFlags
and __repr__ shows GLib.SpawnFlags in stead of PyGLibSpawnFlags.
https://bugzilla.gnome.org/show_bug.cgi?id=657915
|
|
|
|
|
|
|
|
|
| |
3.18 added a Gdk.Rectangle type which changed these functions
to methods in the gir.
Fix by providing aliases in the Gdk overrides.
https://bugzilla.gnome.org/show_bug.cgi?id=756364
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This silences glib warnings which are due to testing
of error handling, deprecation warnings which we ignore
since we want to continue testing deprecated code and
other error output of code which is supposed to fail.
To reduce code duplication and make things easier
this introduces a shared helper module containing
various context managers and decorators which allow
testing and silencing of warnings and errors.
https://bugzilla.gnome.org/show_bug.cgi?id=751156
|
|
|
|
|
|
|
|
|
| |
Add EventTouch to get/setattr pass-through to support BEGIN, UPDATE, END,
and CANCEL touch event types. Ensure Gdk.Event methods get_state(),
get_axis(), get_coords(), and get_root_coords() are patched onto
Gdk.EventTouch.
https://bugzilla.gnome.org/show_bug.cgi?id=736380
|
|
|
|
|
|
|
| |
Pass the setting of attributes through to the underlying union based
on event type. This mirrors the logic in __getattr__.
https://bugzilla.gnome.org/show_bug.cgi?id=727810
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=727810
|
|
|
|
|
|
| |
Change __repr__ overrides for Gdk.Color, Gdk.RGBA, and Gdk.Atom to return a
string reprentation that is valid Python given an expected environment.
See: http://docs.python.org/2/reference/datamodel.html#object.__repr__
|
|
|
|
|
|
|
|
|
| |
Give deprecation warning for the overridden __new__ method on
Gdk.Cursor when more than one argument is used. Recommend using
Gdk.Cursor.new_for_display, new_from_pixbuf, and new_from_pixmap
instead.
https://bugzilla.gnome.org/show_bug.cgi?id=705810
|
|
|
|
|
| |
Add tests for Gtk.main_quit, Gtk.stock_parse(), and Gdk.color_parse(), as we
have overrides for them.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
GFlagsValue.value is a guint, so we must access it as unsigned type. Define two
new macros PYGLIB_PyLong_FromUnsignedLong() and PYGLIB_PyLong_AsUnsignedLong()
for that purpose, and consistently use them for handling flag values. Use the
checked variant of these functions which produce OverflowErrors instead
of the unchecked PYGLIB_PyLong_AS_LONG().
Insert zero padding after the PyLongObject in PyGFlags and PyGEnum. Without
this, the directly adjacent GType field seems to confuse
PyLong_FromUnsignedLong() and includes the GType into the numeric value.
https://bugzilla.gnome.org/show_bug.cgi?id=693121
|
|
Split the huge test_overrides.py into separate files for gdk, gtk, gio, glib,
and pango. Further split the monolithic classes for Gtk and Gio into several
ones.
https://bugzilla.gnome.org/show_bug.cgi?id=683188
|