Working for older gtk versions as well