Make gui-related code subclasses of appropriate gtk classes