Adds compatibility for gtk 3.10-