GTK3 compatibility.

Basic GTK3 compatibility for mate-desktop.