Add thread control and Method test. Change GTK class to thread support