diff --git a/src/app/browser/main.rs b/src/app/browser/main.rs index 7d7f05e4..52f067d8 100644 --- a/src/app/browser/main.rs +++ b/src/app/browser/main.rs @@ -1,8 +1,17 @@ +#[path = "main/tab.rs"] mod tab; + use gtk::Box; +use gtk::prelude::BoxExt; pub fn new() -> Box { - return Box::builder().orientation( + let main = Box::builder().orientation( gtk::Orientation::Vertical ).build(); + + main.append( + &tab::new() + ); + + return main; } \ No newline at end of file diff --git a/src/app/browser/main/tab.rs b/src/app/browser/main/tab.rs new file mode 100644 index 00000000..6da41f49 --- /dev/null +++ b/src/app/browser/main/tab.rs @@ -0,0 +1,6 @@ +use gtk::Notebook; + +pub fn new() -> Notebook +{ + return Notebook::builder().build(); +} \ No newline at end of file