call Gdk.thread_init and Gtk.init