I have a problem in understanding the memory of the returned
GList* pointer from the gtk-application-get-windows function.
The return type of this function is
GList * and the documentation says
Don't free data after the code is done.
This means that this function in my opinion should be declared as
const, but I have that feeling that probably I am wrong with this one.
I noticed that it is also marked as
Generic and defining elements of containers and arrays.
Which is also new for me, what I am missing here?
What exactly meas this:
The list that is returned should not be modified in any way. It will only remain valid until the next focus change or window creation or deletion.