gtk3: make a sample script gtk3 ready