-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[Bug]: Icons do not work with GTK #29229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Are the files from the warnings not there? |
I've seen this before, it was resolved by installing an optional dependency, I want to say it was Essentially our icons are now SVGs and GTK can support SVGs, but some base installs do not support it out of the box. |
Yes, the files do not exist at all.
|
They are missing from the distributed wheels. But, building a wheel locally I get them built into the wheels. A quick grep of the library looks like this is basically the only place we are referencing |
We do not know it was someone who messed up. This could be an upstream issue with cibuildwheel/meson changing how they reference symlinks. @2sn, please do not accuse people in your comments, we are a community of volunteers. If you want to investigate this and help contribute a patch that would be greatly appreciated! |
I just spent a few hours identifying this bug, too. I have a Gtk 3 app bundled in a flatpak file that uses matplotlib backendtools. In my case, button labels were shown instead of their icons. But I saw no error or warning messages, so this was a tough one |
Though mentioned in the meeting, for reference here, the naming triggers GTK's symbolic icon support which re-colours the icons based on user theme (white strokes on dark backgrounds, black stroke on light backgrounds, etc.) |
@greglucas My apologies. My questions is whether it is possible to create a test setup to check for this kind of issues? It seems to have escaped automated tests. |
Bug summary
When using GTK as backend, a bunch of warnings are shown in the terminal due to missing icons and the UI does not show icons in the toolbar.
Code for reproduction
Actual outcome
Expected outcome
Icons are shown properly
Additional information
Steps:
Operating system
Ubuntu
Matplotlib Version
3.9.3
Matplotlib Backend
gtk4agg
Python version
3.13.0
Jupyter version
No response
Installation
pip
The text was updated successfully, but these errors were encountered: