Is it possible to load a PNG image without using of loaders.cache file?
The background is, i dont want to change / recreate the loaders.cache file on every directory change.
A another option for me was to have a loaders.cache with a direct path link like this:
"libpixbufloader-png.dll"
"png" 5 "gdk-pixbuf" "PNG" "LGPL"
"image/png" ""
"png" ""
"211PNGrn32n" "" 100
But with this, GTK+ not search in the working directory.
It was using the path C:MinGW64libpixbufloader-png.dll
(The working path is C:MinGW64binprojgtk_packagelibpixbufloader-png.dll
).
I tried to set g_setenv("GDK_PIXBUF_MODULEDIR", module_dir, TRUE);
and g_setenv("GDK_PIXBUF_MODULE_FILE", module_dir, TRUE);
to the working directory but this dont have any effect.
I use GTK 3.20.