GTK4 template does not build
After creating the template project using create-project.py, building it using GNOME Builder results in following errors:
error[E0599]: no function or associated item named `get_default` found for struct `gtk4::gdk4::Display` in the current scope
--> src/application.rs:116:46
|
116 | if let Some(display) = gdk::Display::get_default() {
| ^^^^^^^^^^^ function or associated item not found in `gtk4::gdk4::Display`
error[E0599]: no method named `get_object` found for struct `gtk4::Builder` in the current scope
--> src/window.rs:49:37
|
49 | let shortcuts = builder.get_object("shortcuts").unwrap();
| ^^^^^^^^^^ method not found in `gtk4::Builder`
error[E0599]: no method named `get_int` found for reference `>k4::gio::Settings` in the current scope
--> src/window.rs:109:30
|
109 | let width = settings.get_int("window-width");
| ^^^^^^^ method not found in `>k4::gio::Settings`
error[E0599]: no method named `get_int` found for reference `>k4::gio::Settings` in the current scope
--> src/window.rs:110:31
|
110 | let height = settings.get_int("window-height");
| ^^^^^^^ method not found in `>k4::gio::Settings`
error[E0599]: no method named `get_boolean` found for reference `>k4::gio::Settings` in the current scope
--> src/window.rs:111:37
|
111 | let is_maximized = settings.get_boolean("is-maximized");
| ^^^^^^^^^^^ method not found in `>k4::gio::Settings`