gtk4 hello1 hello2

This commit is contained in:
2023-07-04 12:53:21 +02:00
parent 000f8f72a2
commit 695a1defaf
4 changed files with 45 additions and 0 deletions

9
gtk4/hello1/Cargo.toml Normal file
View File

@@ -0,0 +1,9 @@
[package]
name = "hello1"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
gtk = { version = "0.6.6", package = "gtk4", features = ["v4_8"] }

9
gtk4/hello1/src/main.rs Normal file
View File

@@ -0,0 +1,9 @@
use gtk::prelude::*;
use gtk::{glib, Application};
const APP_ID: &str = "com.clonbg.Helloword1";
fn main() -> glib::ExitCode {
let app = Application::builder().application_id(APP_ID).build();
app.run()
}