#[path = "app/browser.rs"] mod browser; use gtk::prelude::{ ApplicationExt, ApplicationExtManual, GtkApplicationExt, GtkWindowExt }; use gtk::{ Application, glib }; fn main() -> glib::ExitCode { // Init app let app = Application::builder().application_id( "io.github.yggverse.Yoda.app" ).build(); // Init accels app.set_accels_for_action( "win.tab_append", &["t"] ); app.set_accels_for_action( "win.tab_close", &["q"] ); app.set_accels_for_action( "win.debug", &["i"] ); app.set_accels_for_action( "win.quit", &["Escape"] ); // Create new window app.connect_activate( |app| { browser::new( app, 640, 480 ).present(); } ); // Start app.run() }