Possible fix for gtk2 build error. Bring back some code.