Crate API docs
By default the
gtk crate provides only GTK+ 3.4 APIs. You can access more
modern APIs by selecting one of the following features:
[dependencies.gtk] version = "0.1.0" features = ["v3_16"]
Take care when choosing the version to target: some of your users might not have easy access to the latest ones. The higher the version, the fewer users will have it installed.
See the examples repository.