Yoda/src/app/browser.rs

14 lines
529 B
Rust
Raw Normal View History

2024-09-18 20:33:29 +03:00
#[path = "browser/header.rs"] mod header;
#[path = "browser/main.rs"] mod main;
use gtk::{Application, ApplicationWindow};
pub fn new(app: &Application) -> ApplicationWindow
{
return ApplicationWindow::builder().application(app)
.default_width(640)
.default_height(480)
2024-09-18 21:22:00 +03:00
.titlebar(&header::new())
2024-09-18 20:33:29 +03:00
.child(&main::new())
.build();
}