another fix for GTK < 3.12
Merge pull request #5 from leif/master

another fix for GTK < 3.12