Using gdk_texture_new_from_resource() is not valid here because we are not sure if the given resource is valid. Plus, the previous optimization is no longer relevant, because we are not using gdk_pixbuf_new_from_resource() anymore - which was what this optimization was about before it was ported to GdkTexture. Test attached.
4 lines
115 B
CSS
4 lines
115 B
CSS
window { background-image: url("resource://"); }
|
|
|
|
button { background-image: url("resource://doesnotexist.jpg"); }
|