Yes, I am aware of the mixed calling conventions. GTK uses cdecl, and my functions use stdcall, I might even use fastcall once in while.
I am going to spend some time commenting the code. It would be a good learning experience if anything for you :-)