Browse Source

rename main mod to wrapper

master
yggverse 2 months ago
parent
commit
992ecfc0f6
  1. 8
      src/app/browser.rs
  2. 4
      src/app/browser/wrapper.rs
  3. 0
      src/app/browser/wrapper/tab.rs
  4. 0
      src/app/browser/wrapper/tab/label.rs
  5. 0
      src/app/browser/wrapper/tab/label/pin.rs
  6. 0
      src/app/browser/wrapper/tab/label/title.rs
  7. 0
      src/app/browser/wrapper/tab/page.rs
  8. 0
      src/app/browser/wrapper/tab/page/content.rs
  9. 0
      src/app/browser/wrapper/tab/page/content/text.rs
  10. 0
      src/app/browser/wrapper/tab/page/content/text/gemini.rs
  11. 0
      src/app/browser/wrapper/tab/page/content/text/gemini/reader.rs
  12. 0
      src/app/browser/wrapper/tab/page/content/text/gemini/reader/default.css
  13. 0
      src/app/browser/wrapper/tab/page/content/text/gemini/reader/parser.rs
  14. 0
      src/app/browser/wrapper/tab/page/content/text/gemini/reader/parser/header.rs
  15. 0
      src/app/browser/wrapper/tab/page/content/text/gemini/reader/parser/link.rs
  16. 0
      src/app/browser/wrapper/tab/page/content/text/gemini/reader/parser/plain.rs
  17. 0
      src/app/browser/wrapper/tab/page/content/text/plain/reader.rs
  18. 0
      src/app/browser/wrapper/tab/page/meta.rs
  19. 0
      src/app/browser/wrapper/tab/page/navigation.rs
  20. 0
      src/app/browser/wrapper/tab/page/navigation/base.rs
  21. 0
      src/app/browser/wrapper/tab/page/navigation/bookmark.rs
  22. 0
      src/app/browser/wrapper/tab/page/navigation/history.rs
  23. 0
      src/app/browser/wrapper/tab/page/navigation/history/back.rs
  24. 0
      src/app/browser/wrapper/tab/page/navigation/history/forward.rs
  25. 0
      src/app/browser/wrapper/tab/page/navigation/reload.rs
  26. 0
      src/app/browser/wrapper/tab/page/navigation/request.rs

8
src/app/browser.rs

@ -1,12 +1,12 @@ @@ -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 { @@ -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 { @@ -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(),

4
src/app/browser/main.rs → src/app/browser/wrapper.rs

@ -6,12 +6,12 @@ use tab::Tab; @@ -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>,

0
src/app/browser/main/tab.rs → src/app/browser/wrapper/tab.rs

0
src/app/browser/main/tab/label.rs → src/app/browser/wrapper/tab/label.rs

0
src/app/browser/main/tab/label/pin.rs → src/app/browser/wrapper/tab/label/pin.rs

0
src/app/browser/main/tab/label/title.rs → src/app/browser/wrapper/tab/label/title.rs

0
src/app/browser/main/tab/page.rs → src/app/browser/wrapper/tab/page.rs

0
src/app/browser/main/tab/page/content.rs → src/app/browser/wrapper/tab/page/content.rs

0
src/app/browser/main/tab/page/content/text.rs → src/app/browser/wrapper/tab/page/content/text.rs

0
src/app/browser/main/tab/page/content/text/gemini.rs → src/app/browser/wrapper/tab/page/content/text/gemini.rs

0
src/app/browser/main/tab/page/content/text/gemini/reader.rs → src/app/browser/wrapper/tab/page/content/text/gemini/reader.rs

0
src/app/browser/main/tab/page/content/text/gemini/reader/default.css → src/app/browser/wrapper/tab/page/content/text/gemini/reader/default.css

0
src/app/browser/main/tab/page/content/text/gemini/reader/parser.rs → src/app/browser/wrapper/tab/page/content/text/gemini/reader/parser.rs

0
src/app/browser/main/tab/page/content/text/gemini/reader/parser/header.rs → src/app/browser/wrapper/tab/page/content/text/gemini/reader/parser/header.rs

0
src/app/browser/main/tab/page/content/text/gemini/reader/parser/link.rs → src/app/browser/wrapper/tab/page/content/text/gemini/reader/parser/link.rs

0
src/app/browser/main/tab/page/content/text/gemini/reader/parser/plain.rs → src/app/browser/wrapper/tab/page/content/text/gemini/reader/parser/plain.rs

0
src/app/browser/main/tab/page/content/text/plain/reader.rs → src/app/browser/wrapper/tab/page/content/text/plain/reader.rs

0
src/app/browser/main/tab/page/meta.rs → src/app/browser/wrapper/tab/page/meta.rs

0
src/app/browser/main/tab/page/navigation.rs → src/app/browser/wrapper/tab/page/navigation.rs

0
src/app/browser/main/tab/page/navigation/base.rs → src/app/browser/wrapper/tab/page/navigation/base.rs

0
src/app/browser/main/tab/page/navigation/bookmark.rs → src/app/browser/wrapper/tab/page/navigation/bookmark.rs

0
src/app/browser/main/tab/page/navigation/history.rs → src/app/browser/wrapper/tab/page/navigation/history.rs

0
src/app/browser/main/tab/page/navigation/history/back.rs → src/app/browser/wrapper/tab/page/navigation/history/back.rs

0
src/app/browser/main/tab/page/navigation/history/forward.rs → src/app/browser/wrapper/tab/page/navigation/history/forward.rs

0
src/app/browser/main/tab/page/navigation/reload.rs → src/app/browser/wrapper/tab/page/navigation/reload.rs

0
src/app/browser/main/tab/page/navigation/request.rs → src/app/browser/wrapper/tab/page/navigation/request.rs

Loading…
Cancel
Save