mirror of https://github.com/YGGverse/Yoda.git
yggverse
2 months ago
1 changed files with 26 additions and 3 deletions
@ -1,3 +1,26 @@
@@ -1,3 +1,26 @@
|
||||
fn main() { |
||||
println!("Hello, world!"); |
||||
use gtk4 as gtk; |
||||
use gtk::prelude::*; |
||||
use gtk::{glib, Application, ApplicationWindow}; |
||||
|
||||
fn main() -> glib::ExitCode |
||||
{ |
||||
let app = Application::builder() |
||||
.application_id("io.github.yggverse.Yoda.app") |
||||
.build(); |
||||
|
||||
app.connect_activate( |
||||
|app| |
||||
{ |
||||
let window = ApplicationWindow::builder() |
||||
.application(app) |
||||
.default_width(640) |
||||
.default_height(480) |
||||
.title("Yoda") |
||||
.build(); |
||||
|
||||
window.present(); |
||||
} |
||||
); |
||||
|
||||
app.run() |
||||
} |
Loading…
Reference in new issue