mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-04-16 09:48:34 +02:00
32 lines
709 B
Rust
32 lines
709 B
Rust
|
|
mod components;
|
|
|
|
use gtk::prelude::*;
|
|
use gtk::{gio, Application};
|
|
use crate::components::window::window::Window;
|
|
|
|
const APP_ID: &str = "org.Xetibo.ReSet";
|
|
|
|
fn main() {
|
|
gio::resources_register_include!("src.templates.gresource")
|
|
.expect("Failed to register resources.");
|
|
gio::resources_register_include!("src.icons.gresource")
|
|
.expect("Failed to register resources.");
|
|
|
|
let app = Application::builder().application_id(APP_ID).build();
|
|
|
|
app.connect_startup(move |_| {
|
|
adw::init().unwrap();
|
|
});
|
|
|
|
app.connect_activate(buildUI);
|
|
app.run();
|
|
}
|
|
|
|
#[allow(non_snake_case)]
|
|
fn buildUI(app: &Application) {
|
|
let window = Window::new(app);
|
|
window.present();
|
|
}
|
|
|