Hey!
It’s been a while since I last asked a question about GTK, but here we go.
For quite some time I’ve used this function to obtain a slist of GFIles contained in a folder.
https://pastebin.com/wxd1Q9ST
I wrote it many years ago and it hasn’t worked regularly since then.
Sometimes it would work and sometimes it wouldn’t. The behavior is completely undefined.
What could be the reason for it to not work and more importantly how do I do this in a GTK fashion, because I don’t want to add platform-specific code?