added gtk3 compatibility