summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* overrides: Remove various overrides for gtk4ebassi/gtk4-overridesChristoph Reiter2020-11-152-258/+188
| | | | | | Basically everything where we hav a transition path that works for both gtk3 and 4. We'll need to add new deprecation warnings for gtk3 once things have settled down.
* Clean up Widget overridesChristoph Reiter2020-11-152-11/+24
|
* tests: various fixes for gtk4Christoph Reiter2020-11-153-31/+63
| | | | skip template/builder tests for now as they require larger changes
* gtk4: Skip template test for nowChristoph Reiter2020-11-151-1/+4
| | | | We'll get back to them later
* gtk4: Remove overrides for PanedChristoph Reiter2020-11-152-8/+9
| | | | pack1/2 are gone
* flake8 fixesChristoph Reiter2020-11-151-7/+0
|
* Clean up version checks some moreChristoph Reiter2020-11-152-10/+10
|
* Drop the GtkButton override for GTK4Emmanuele Bassi2020-11-151-35/+36
| | | | | We don't need to override anything, once we drop the deprecated compatibility layer for pygtk.
* Add GTK4 override for GtkDialogEmmanuele Bassi2020-11-151-73/+105
| | | | | Drop all the deprecated compatibility layer for pygtk, and the inheritance from GtkContainer.
* Remove Container from GTK4 overridesEmmanuele Bassi2020-11-151-49/+100
| | | | The Container class does not exist any more.
* Simplify the version check for GTK2, GTK3, and GTK4Emmanuele Bassi2020-11-151-9/+12
| | | | Similar to what the Gdk.py overrides do.
* tests: Work around a crash in the new gtk4 a11y stackChristoph Reiter2020-11-151-0/+4
| | | | | | | gtk4 calls get_dbus_object_path() on the default app and glib leaves invalid GApplication instances as default in various places. It's hard to track where a new default instances gets set, so just disable a11y in the test suite for now.
* tests: fix tests with glib masterChristoph Reiter2020-11-151-1/+2
| | | | | GFileIcon asserts that it gets a file now: https://gitlab.gnome.org/GNOME/glib/-/commit/e2fbb74301
* Don't assume Py_TYPE being a macroTomas Hrnciar2020-11-1114-14/+18
| | | | | | Py_TYPE was changed to a function in Python 3.10. Suggested approach is to use Py_SET_TYPE macro instead, see: https://docs.python.org/3.10/whatsnew/3.10.html.
* add Terminator to list of pygobject projectsMatt Rose2020-11-071-0/+1
|
* CI: clean up the msys2 job scriptsChristoph Reiter2020-11-072-35/+19
|
* CI: bring back lcov supportChristoph Reiter2020-11-075-32/+46
| | | | | | The newest lcov supports gcc 10 again. Also collect coverage before the tests run as a baseline and add a config file so every lcov call uses the same settings (taken on glib)
* tests: Remove usage of some deprecated unittest methodsChristoph Reiter2020-11-076-51/+47
|
* tests: remove an old libtool search pathChristoph Reiter2020-11-071-1/+0
|
* tests: Remove metapath hack to import when uninstalledChristoph Reiter2020-11-071-23/+0
| | | | | | | This was required for Python 2 where Python didn't import our built modules in the build dir because there is no __init__.py. In Python 3 this just works. Tested with setup.py/pytest/meson
* Add Nicotine+ to "Who Is Using PyGObject?"Mat2020-10-141-0/+1
|
* gtk overrides: Remove Container use for GTK4wip/mschraal/gtk4-container-removalMarinus Schraal2020-10-072-22/+35
|
* Replace PyUnicode_GET_SIZE() usage with PyUnicode_GET_LENGTH()Christoph Reiter2020-10-062-1/+2
| | | | | | | PyUnicode_GET_SIZE() is deprecated and actually wrong in case wchar_t is not 4 bytes and high code points, use PyUnicode_GET_LENGTH() instead. Fixes a deprecation warning with Python 3.9
* Don't call PyEval_InitThreads() with Python 3.9+Christoph Reiter2020-10-061-0/+4
| | | | | | The GIL is now created by Python at initialization time no matter what. PyEval_InitThreads() triggers a deprecation warning and will be removed in 3.10 so don't use it with 3.9+.
* CI: test with Python 3.9Christoph Reiter2020-10-063-2/+8
|
* Revert the dependency bump for libffiChristoph Reiter2020-09-152-2/+2
| | | | | | | It results in crashes downstream (pulls in a meson fallback in gst-ci) and it isn't really needed, so revert for now. Also Fedora only has 3.1 it turns out.
* Drop Python 3.5 support and bump other dependenciesdrop-py35Christoph Reiter2020-09-149-38/+34
| | | | | | Motivated by the EOL of Python 3.5 and the EOL of Ubuntu 16.04 next year this requires Python 3.6 and moves all other dependencies to what is available in Ubuntu 18.04.
* Update NEWS and bump versionChristoph Reiter2020-09-123-13/+17
|
* meson: Follow up to make `pycairo` option a featureThibault Saunier2020-06-031-5/+5
|
* meson: Make the `pycairo` option a featureThibault Saunier2020-06-034-5/+8
| | | | So user have more control on whether to build it or not
* flake8: fix errors with new flake8 3.8.0Christoph Reiter2020-05-173-6/+10
|
* Update NEWSChristoph Reiter2020-05-061-0/+11
|
* CI: switch to the new win32 powershell runnersChristoph Reiter2020-04-281-1/+1
|
* get/set_focus_on_click: Fix return value, add a test and document why the ↵Christoph Reiter2020-04-172-9/+19
| | | | | | | override is there Also make it conditional on the Gtk.Widget method existing since that was only added with gtk 3.20 and we support 3.18+.
* Add overrides for Gtk.Button set/get_focus_on_clickDan Yeaw2020-04-171-0/+10
| | | | | | | | Fixes #371. Gtk.Button.set_focus_on_click and Gtk.Button.get_focus_on_click are deprecated since version 3.20. This override calls the Gtk.Widget methods so that users don't get a deprecation message. Signed-off-by: Dan Yeaw <dan@yeaw.me>
* Add a test scroll event attr mappingChristoph Reiter2020-04-171-0/+5
|
* gdk overrides: Fix wrapping of scroll eventsPovilas Kanapickas2020-04-171-0/+1
|
* tests: GtkWindowType has been removed from GTK4Jean Felder2020-04-171-1/+29
| | | | | | | | See gtk commit c1f71ee3e8add0c8e43445b888719ac85a743583. There are now top_level windows only. A new gtk4 test is added to check that windows are correctly created and work from builder.
* tests: GDK_RELEASE_MASK has been removed from GTK4Jean Felder2020-04-171-8/+10
| | | | See gtk commit 2244eeb7270f5a0b351aae98c19ddbc4d4b5bea7.
* gtktemplate: Do not crash on multiple init_template callsJean Felder2020-04-172-1/+31
| | | | | | | | | | | | | | | | | init_template method is automatically called when a widget is created and it is not supposed to be called multiple times. That is why this method is turned into a no-op after its first call via a lambda function. init_template can still be called after a widget creation (and it is supposed to do nothing). However, a second call will result in a crash because the lambda function has a parameter while init_template is not supposed to have any parameter. This issue is fixed by removing the parameter of the lambda function. A new test is also added to assert that a second init_template call does nothing.
* gtk overrides: Fix template hierarchy issueJean Felder2020-04-172-4/+79
| | | | | | | | | | | | | | | | | | | | When a widget is inside a template it is created through a g_object_new and does not have a python wrapper when pygobject__g_instance_init is called. In that case, a wrapper is created and the "__init__" method is called to instantiate it. Then, "init_template" is called to init its own template (if it exists). However, "init_template" needs to be called before the object constructor in order to create and instantiate all its children, signals and properties. This issue is fixed by calling init_template before the contructor if the python object has been created through g_object_new. A new test for the template hierarchy is added (based on an example from Marinus Schraal). Closes: #257, #386
* gimodule: Remove trailing whitespacesJean Felder2020-04-161-8/+8
|
* NEWS: Add a note on how to handle keeping an old release for py2 aroundChristoph Reiter2020-04-161-0/+12
| | | | | | | | | This should help distros update to the new version even if they have to still support Python 2. If there are any open questions please add something in #392 Fixes #392
* Rename PYGLIB_DEFINE_TYPE to PYGI_DEFINE_TYPEChristoph Reiter2020-04-1619-48/+48
| | | | This is a leftover from when things were split up
* Remove PYGOBJECT_REGISTER_GTYPEChristoph Reiter2020-04-166-31/+67
| | | | Less macro magic
* Remove PYGLIB_REGISTER_TYPEChristoph Reiter2020-04-166-16/+34
| | | | Less macro magic
* Remove all Python 2 C codeChristoph Reiter2020-04-1636-679/+382
|
* Remove all Python 2 Python codeChristoph Reiter2020-04-1563-496/+112
|
* Gtk overrides: make sure TreeModelSort.new_with_model and ↵Christoph Reiter2020-03-172-0/+27
| | | | | | | | | TreeModel.sort_new_with_model exist In https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/1134 the method was changed to a constructor which means the API is different between older and newer gtk. Add fallbacks for both in our overrides so both ways work all the time.
* tests: Add a Gtk4 test for drag and drop operationsJean Felder2020-03-161-13/+28
|