Commits on Source (44)
-
Christoph Reiter authored12930c0e
-
Christoph Reiter authored
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.
6ffc87e5 -
Christoph Reiter authored
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.
4208cf1d -
Christoph Reiter authoredb991b9d3
-
Christoph Reiter authored
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+.
2913e72d -
Christoph Reiter authored
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
c945c99f -
5657e623
-
Mat authoredb60e4030
-
Christoph Reiter authored
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
030aa5f5 -
Christoph Reiter authoredc464187c
-
Christoph Reiter authoredebc0eed6
-
Christoph Reiter authored
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)
e28fe690 -
Christoph Reiter authored80e48fd1
-
c28e4da8
-
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.
ba67301b -
Christoph Reiter authored
GFileIcon asserts that it gets a file now: https://gitlab.gnome.org/GNOME/glib/-/commit/e2fbb74301
6033ab41 -
Christoph Reiter authored
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.
8b28e383 -
Similar to what the Gdk.py overrides do.
9b2942b1 -
The Container class does not exist any more.
4e9ba15d -
Drop all the deprecated compatibility layer for pygtk, and the inheritance from GtkContainer.
3e64ba28 -
We don't need to override anything, once we drop the deprecated compatibility layer for pygtk.
5d766d5d -
Christoph Reiter authored01c21402
-
Christoph Reiter authoredf0056a0b
-
Christoph Reiter authored
pack1/2 are gone
9e3ef2c2 -
Christoph Reiter authored
We'll get back to them later
1dd6dfd8 -
Christoph Reiter authored
skip template/builder tests for now as they require larger changes
d6e029c5 -
Christoph Reiter authored2ab352aa
-
Christoph Reiter authored
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.
d1221d0a -
Jean Felder authored
GTK4 removed the Gtk.Container interface, and added API on Gtk.Widget to iterate over children instead. Making Widgets iterable allows to easily loop over the children and check is a widget is a child of an other one. A new test is also added.
0453702f -
Christoph Reiter authored
The examples don't work with gtk4 so set the proper version
7df00165 -
Jean Felder authored
This function use CompareDataFunc which works with pointers and doesn't know anything about GObjects. The same logic as in Gio.List.sort and Gio.List.insert_sorted is used. An associated unit_test is also added.
9215e3a1 -
Jean Felder authored
Gtk.Widget.set_connect_func() does not exist anymore and signals are automatically connected. Instead, a GtkBuilderScope needs to be used to create GtkBuilder's closure functions. pygobject closure support is extended to support functools.partial. This is used to create a GtkBuilder closure function with an object different from the current object. See MR https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/1204 and https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/1230 Closes: #380
a4880dbc -
Jean Felder authored
This is a follow of the previous commit which fixes template support in GTK4 by adding GtkBuilerScope. It is extended to support a scope object (it can be a python object or a dictionnary). This scope object is used to define the scope the builder should operate in. A new GtkBuilder constructor is introduced to be able to define this scope object.
2d9a3097 -
Jean Felder authored
Swapped defaults to TRUE when object is set.
dea3b5d3 -
Jean Felder authored66fd10e5
-
Jean Felder authored
In GTK4, the margin property does not exist anymore. Replace it by the margin-top property.
1df10f76 -
Jean Felder authored
GTK4 removed the Gtk.Container interface. All GTK4 widgets are now iterable.
10932d80 -
Jean Felder authored0a16082c
-
Christoph Reiter authored4a9f5eb6
-
Christoph Reiter authored42b384a7
-
Christoph Reiter authored
Since 2.68 Gio.File.new_for_path("") returns a GDummyFile instead of a GLocalFile. We don't really care since we just want to test that there is a name despite the type not being in the gir, so just pass a potentially valid path instead.
3c8e9578 -
Christoph Reiter authored
In a4880dbc a special case for partial() was added to handle gtk4 template callbacks. This in turn broken normal usage of partial objects. To work around that add a special marker in the gtk template code for now until we find a better fix. Also adds a test so this doesn't happen again. Fixes #464
1235c483 -
Christoph Reiter authored8f0b2bbe
-
Sebastien Bacher authoredc56c0ef7
.gitlab-ci/lcovrc
0 → 100644