For some reason the icon is not shown when using the gtk backend but at least the API calls look correct.