[MSVC] Icons from scalable/apps/ and symbolic/apps/ aren't resolved on Windows
This affects the libadwaita
demo, as well as my own app (where the AdwEntryRow
"pencil" icon was encountering the same problem).
To reproduce
- Build GTK4, Libadwaita with
gvsbuild
:gvsbuild build gtk4 libadwaita
- Run
C:\gtk-build\gtk\x64\release\bin\adwaita-1-demo.exe
- The icon in the middle of the right pane is not properly loaded
Workaround
# Needed for top-left icon to work
gvsbuild build librsvg
# Needed for icon in middle of right pane to work
xcopy /s /i C:\gtk-build\gtk\x64\release\share\icons\hicolor\scalable\apps C:\gtk-build\gtk\x64\release\share\icons\hicolor\scalable\actions
gtk4-update-icon-cache.exe -t -f C:\gtk-build\gtk\x64\release\share\icons\hicolor
Then, running adwaita-1-demo.exe
will show all icons properly.
Edited by Mitchell Hentges