Further to this I copied this example: valadoc-org/examples/gtk+-3.0/Gtk.Viewport.vala at main · vala-lang/valadoc-org · GitHub
On Linux it worked fine and showed .png
and .svg
images.
On Windows it crashes:
$ viewport.exe ../hellogtk/images/icon.png
(viewport.exe:3048): Gtk-WARNING **: 11:25:49.875: Could not load a pixbuf from /org/gtk/libgtk/icons/16x16/status/image-missing.png.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../gtk+-3.24.20/gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Bail out! Gtk:ERROR:../gtk+-3.24.20/gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
I also tried this example: valadoc-org/examples/gtk+-3.0/Gtk.IconView.vala at main · vala-lang/valadoc-org · GitHub
And again it works fine on Linux but crashes on Windows:
$ iconview.exe
(iconview.exe:2052): Gtk-WARNING **: 11:29:28.250: Could not find the icon 'help-about'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
http://icon-theme.freedesktop.org/releases
**
ERROR:C:/bin/msys64/home/mark/vala/learn/iconview/iconview.vala.c:334:application_construct: code should not be reached
Bail out! ERROR:C:/bin/msys64/home/mark/vala/learn/iconview/iconview.vala.c:334:application_construct: code should not be reached
Here’re the packages I’ve installed in MSYS2:
$ pacman -Qe
base 2020.05-2
filesystem 2020.02-5
mingw-w64-x86_64-gcc 10.1.0-3
mingw-w64-x86_64-gtk3 3.24.20-3
mingw-w64-x86_64-libgee 0.20.3-1
mingw-w64-x86_64-pkg-config 0.29.2-1
mingw-w64-x86_64-vala 0.48.7-1
vim 8.2.0869-1
What am I missing or doing wrong?