Yoda/src/main.rs

32 lines
502 B
Rust
Raw Normal View History

2024-09-18 20:33:29 +03:00
#[path = "app/browser.rs"] mod browser;
use gtk::prelude::{
ApplicationExt,
ApplicationExtManual,
GtkWindowExt
};
use gtk::{
Application,
glib
};
2024-09-18 16:24:25 +03:00
fn main() -> glib::ExitCode
{
2024-09-18 20:33:29 +03:00
let app = Application::builder().application_id(
"io.github.yggverse.Yoda.app"
).build();
2024-09-18 16:24:25 +03:00
app.connect_activate(
|app|
{
2024-09-18 20:33:29 +03:00
browser::new(
app,
640,
480
2024-09-18 20:33:29 +03:00
).present();
2024-09-18 16:24:25 +03:00
}
);
app.run()
}