Skip to content

Fix setting CSS with latest GTK4 - #25280

Merged
jklymak merged 1 commit into
matplotlib:mainfrom
QuLogic:new-gtk4-css
Feb 22, 2023
Merged

jklymak merged 1 commit into
matplotlib:mainfrom
QuLogic:new-gtk4-css

Conversation

@QuLogic

@QuLogic QuLogic commented Feb 22, 2023

Copy link
Copy Markdown
Member

PR Summary

In the upcoming 4.10 release, the type annotation was fixed [1]. There may be some overrides added in PyGObject [2] to avoid this difference, but we don't depend on a specific version of it to be able to rely on that (and it's not released yet.) This code should work with the override as well.

[1] https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5441
[2] https://gitlab.gnome.org/GNOME/pygobject/-/merge_requests/231

PR Checklist

Documentation and Tests

  • Has pytest style unit tests (and pytest passes)
  • [n/a] Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • [n/a] New plotting related features are documented with examples.

Release Notes

  • [n/a] New features are marked with a .. versionadded:: directive in the docstring and documented in doc/users/next_whats_new/
  • [n/a] API changes are marked with a .. versionchanged:: directive in the docstring and documented in doc/api/next_api_changes/
  • [n/a] Release notes conform with instructions in next_whats_new/README.rst or next_api_changes/README.rst

In the upcoming 4.10 release, the type annotation was fixed [1]. There
may be some overrides added in PyGObject [2] to avoid this difference,
but we don't depend on a specific version of it to be able to rely on
that (and it's not released yet.) This code should work with the
override as well.

[1] https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5441
[2] https://gitlab.gnome.org/GNOME/pygobject/-/merge_requests/231
@QuLogic QuLogic added this to the v3.7.1 milestone Feb 22, 2023
@jklymak
jklymak merged commit f8ffce6 into matplotlib:main Feb 22, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Feb 22, 2023
@QuLogic
QuLogic deleted the new-gtk4-css branch February 22, 2023 19:00
ksunden added a commit that referenced this pull request Feb 22, 2023
…280-on-v3.7.x

Backport PR #25280 on branch v3.7.x (Fix setting CSS with latest GTK4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants