GTK3 compatibility.
Merge pull request #67 from Semmu/dev-gtk3

GTK3 compatibility.