Add assertion functions...
Replaced the Gdk main lock with a recursive one
tt