Let’s say I want to display a image coming from the web.
A reasonable approach in GTK+ 3 was to use Soup to load the image into a
MemoryInputStream and use this to create a
However, I noticed that
GdkPixbuf is not longer considered to be part of main GTK and that
GdkTexture is the new object to be used for images.
GdkTexture can be only constructed from a
GdkPixbuf or a local file. I am aware that
from_bytes exists, but this is noted to be for version 4.6.0?
So, the question is: What would be your approach to storing a web image in a
GdkTexture? Downloading the file to
/tmp and loading it from there? Create a
GdkPixbuf and then converting it to a
GdkTexture (which sounds somewhat silly)? Or do I miss something obvious here?
: “Reasonable” as in done this way by Cawbird, the application I am trying to port to GTK4.