init browser modules

This commit is contained in:
yggverse 2024-09-18 20:33:29 +03:00
parent 0f81beb26b
commit 6f9863d0e7
5 changed files with 41 additions and 13 deletions

15
src/app/browser.rs Normal file
View file

@ -0,0 +1,15 @@
#[path = "browser/header.rs"] mod header;
#[path = "browser/main.rs"] mod main;
use gtk4 as gtk;
use gtk::{Application, ApplicationWindow};
pub fn new(app: &Application) -> ApplicationWindow
{
return ApplicationWindow::builder().application(app)
.default_width(640)
.default_height(480)
//.titlebar(&header::new())
.child(&main::new())
.build();
}