mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
init browser modules
This commit is contained in:
parent
0f81beb26b
commit
6f9863d0e7
5 changed files with 41 additions and 13 deletions
21
src/main.rs
21
src/main.rs
|
|
@ -1,24 +1,21 @@
|
|||
#[path = "app/browser.rs"] mod browser;
|
||||
|
||||
use gtk4 as gtk;
|
||||
use gtk::prelude::*;
|
||||
use gtk::{glib, Application, ApplicationWindow};
|
||||
use gtk::{glib, Application};
|
||||
|
||||
fn main() -> glib::ExitCode
|
||||
{
|
||||
let app = Application::builder()
|
||||
.application_id("io.github.yggverse.Yoda.app")
|
||||
.build();
|
||||
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();
|
||||
browser::new(
|
||||
app
|
||||
).present();
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue