Skip to content

fix missing icons on icon themes without deprecated gtk-* stock names#265

Open
bor wants to merge 1 commit intosquentin:masterfrom
bor:fix/missing_stock_icons
Open

fix missing icons on icon themes without deprecated gtk-* stock names#265
bor wants to merge 1 commit intosquentin:masterfrom
bor:fix/missing_stock_icons

Conversation

@bor
Copy link

@bor bor commented Feb 16, 2026

Modern icon themes (Adwaita 48+) no longer provide gtk-* stock icon names. Add fallback mappings from deprecated gtk2 stock IDs to their freedesktop standard equivalents (e.g. gtk-media-play to media-playback-start). The mappings are only used when the old names are not found in the current theme, so bundled gmusicbrowser themes that ship their own gtk-*.png files continue to work as before.

Also fix search entry icons which used set_icon_from_stock directly instead of going through check_icon_name.

Related to #57, #177

Modern icon themes (Adwaita 48+) no longer provide gtk-* stock icon
names. Add fallback mappings from deprecated gtk2 stock IDs to their
freedesktop standard equivalents (e.g. gtk-media-play to
media-playback-start). The mappings are only used when the old names
are not found in the current theme, so bundled gmusicbrowser themes
that ship their own gtk-*.png files continue to work as before.

Also fix search entry icons which used set_icon_from_stock directly
instead of going through check_icon_name.

Related to squentin#57, squentin#177
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant