Display window

This commit is contained in:
Greg Shuflin 2022-05-30 03:37:45 -07:00
parent 53e59b88f0
commit 54dc50edb6

View File

@ -1,3 +1,19 @@
use gtk::prelude::*;
use gtk::{Application, ApplicationWindow};
const APP_ID: &'static str = "org.gtk-rs.Gamarjoba";
fn main() { fn main() {
println!("Hello, world!"); let app = Application::builder().application_id(APP_ID).build();
app.connect_activate(build_ui);
app.run();
}
fn build_ui(app: &Application) {
let window = ApplicationWindow::builder()
.application(app)
.title("Gamarjoba from GTK4")
.build();
window.present();
} }