put text to buffer \n and gdk-thread-leave moved