mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-05 07:54:14 +00:00
rename main mod to wrapper
This commit is contained in:
parent
b9b51f5fe3
commit
992ecfc0f6
@ -1,12 +1,12 @@
|
||||
mod database;
|
||||
mod header;
|
||||
mod main;
|
||||
mod widget;
|
||||
mod wrapper;
|
||||
|
||||
use database::Database;
|
||||
use header::Header;
|
||||
use main::Main;
|
||||
use widget::Widget;
|
||||
use wrapper::Wrapper;
|
||||
|
||||
use gtk::{
|
||||
gio::{AppInfo, AppLaunchContext, SimpleAction},
|
||||
@ -20,7 +20,7 @@ pub struct Browser {
|
||||
database: Arc<Database>,
|
||||
// Components
|
||||
// header: Arc<Header>,
|
||||
// main: Arc<Main>,
|
||||
// wrapper: Arc<Wrapper>,
|
||||
widget: Arc<Widget>,
|
||||
}
|
||||
|
||||
@ -65,7 +65,7 @@ impl Browser {
|
||||
action_tab_pin.clone(),
|
||||
));
|
||||
|
||||
let main = Arc::new(Main::new(
|
||||
let main = Arc::new(Wrapper::new(
|
||||
action_tab_page_navigation_base.clone(),
|
||||
action_tab_page_navigation_history_back.clone(),
|
||||
action_tab_page_navigation_history_forward.clone(),
|
||||
|
@ -6,12 +6,12 @@ use tab::Tab;
|
||||
|
||||
use gtk::{gio::SimpleAction, glib::GString, prelude::BoxExt, Box, Orientation};
|
||||
|
||||
pub struct Main {
|
||||
pub struct Wrapper {
|
||||
tab: Arc<Tab>,
|
||||
widget: Box,
|
||||
}
|
||||
|
||||
impl Main {
|
||||
impl Wrapper {
|
||||
// Construct
|
||||
pub fn new(
|
||||
action_tab_page_navigation_base: Arc<SimpleAction>,
|
Loading…
x
Reference in New Issue
Block a user