background: url('....'); results in runtime warnings
Trying to set CSS:
background: url('/usr/share/icons/gnome/256x256/emotes/face-crying.png');
on a widget results in two runtime warnings:
(gtk4-demo:49143): GLib-GIO-CRITICAL **: 13:53:48.408: g_file_has_uri_scheme: assertion 'G_IS_FILE (file)' failed
(gtk4-demo:49143): Gdk-CRITICAL **: 13:53:48.409: gdk_texture_new_from_file: assertion 'G_IS_FILE (file)' failed
No, using file://...
does not fix it.
Spotted this in gnome-software. The gtk3 works as expected. I've currently installed gtk4-4.4.0-4.fc35.x86_64.
Reproducer:
- run gtk4-demo->Theming->CSS Basics
- change the window's
background-color
to the abovebackground
.