working with gtk and threads

some of the key points when using gtk with threads