Browse Source

remove extra referencers

master
yggverse 1 month ago
parent
commit
a0e923eb7d
  1. 2
      src/app/browser.rs
  2. 2
      src/app/browser/window.rs
  3. 2
      src/app/browser/window/header.rs
  4. 2
      src/app/browser/window/header/bar.rs
  5. 2
      src/app/browser/window/header/bar/control.rs
  6. 2
      src/app/browser/window/header/bar/menu.rs
  7. 2
      src/app/browser/window/header/bar/tab.rs
  8. 2
      src/app/browser/window/header/bar/tab/append.rs
  9. 2
      src/app/browser/window/tab/item.rs
  10. 2
      src/app/browser/window/tab/item/page.rs
  11. 2
      src/app/browser/window/tab/item/page/content/player/default.rs
  12. 4
      src/app/browser/window/tab/item/page/content/text/gemini.rs
  13. 2
      src/app/browser/window/tab/item/page/content/text/gemini/reader.rs
  14. 14
      src/app/browser/window/tab/item/page/content/text/gemini/reader/tag.rs
  15. 2
      src/app/browser/window/tab/item/page/input.rs
  16. 2
      src/app/browser/window/tab/item/page/input/response.rs
  17. 2
      src/app/browser/window/tab/item/page/input/response/control.rs
  18. 2
      src/app/browser/window/tab/item/page/input/response/control/counter.rs
  19. 2
      src/app/browser/window/tab/item/page/input/response/control/send.rs
  20. 2
      src/app/browser/window/tab/item/page/input/response/form.rs
  21. 2
      src/app/browser/window/tab/item/page/input/response/title.rs
  22. 2
      src/app/browser/window/tab/item/page/input/sensitive.rs
  23. 2
      src/app/browser/window/tab/item/page/input/sensitive/form.rs
  24. 2
      src/app/browser/window/tab/item/page/navigation.rs
  25. 2
      src/app/browser/window/tab/item/page/navigation/bookmark.rs
  26. 2
      src/app/browser/window/tab/item/page/navigation/history.rs
  27. 8
      src/app/browser/window/tab/item/page/navigation/history/back.rs
  28. 8
      src/app/browser/window/tab/item/page/navigation/history/forward.rs
  29. 2
      src/app/browser/window/tab/item/page/navigation/home.rs
  30. 5
      src/app/browser/window/tab/item/page/navigation/reload.rs
  31. 2
      src/app/browser/window/tab/item/page/navigation/request.rs

2
src/app/browser.rs

@ -252,7 +252,7 @@ impl Browser { @@ -252,7 +252,7 @@ impl Browser {
// Getters
pub fn gobject(&self) -> &ApplicationWindow {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window.rs

@ -173,7 +173,7 @@ impl Window { @@ -173,7 +173,7 @@ impl Window {
// Getters
pub fn gobject(&self) -> &Box {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/header.rs

@ -56,6 +56,6 @@ impl Header { @@ -56,6 +56,6 @@ impl Header {
// Getters
pub fn gobject(&self) -> &ToolbarView {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/header/bar.rs

@ -59,6 +59,6 @@ impl Bar { @@ -59,6 +59,6 @@ impl Bar {
// Getters
pub fn gobject(&self) -> &Box {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/header/bar/control.rs

@ -19,6 +19,6 @@ impl Control { @@ -19,6 +19,6 @@ impl Control {
// Getters
pub fn gobject(&self) -> &WindowControls {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/header/bar/menu.rs

@ -77,7 +77,7 @@ impl Menu { @@ -77,7 +77,7 @@ impl Menu {
// Getters
pub fn gobject(&self) -> &MenuButton {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/header/bar/tab.rs

@ -22,6 +22,6 @@ impl Tab { @@ -22,6 +22,6 @@ impl Tab {
// Getters
pub fn gobject(&self) -> &TabBar {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/header/bar/tab/append.rs

@ -19,6 +19,6 @@ impl Append { @@ -19,6 +19,6 @@ impl Append {
// Getters
pub fn gobject(&self) -> &Button {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/tab/item.rs

@ -217,7 +217,7 @@ impl Item { @@ -217,7 +217,7 @@ impl Item {
}
pub fn gobject(&self) -> &TabPage {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/tab/item/page.rs

@ -420,7 +420,7 @@ impl Page { @@ -420,7 +420,7 @@ impl Page {
}
pub fn gobject(&self) -> &Box {
&self.widget.gobject()
self.widget.gobject()
}
// Private helpers @TODO move outside

2
src/app/browser/window/tab/item/page/content/player/default.rs

@ -15,6 +15,6 @@ impl Default { @@ -15,6 +15,6 @@ impl Default {
}
pub fn gobject(&self) -> &Video {
&self.widget.gobject()
self.widget.gobject()
}
}

4
src/app/browser/window/tab/item/page/content/text/gemini.rs

@ -37,10 +37,10 @@ impl Gemini { @@ -37,10 +37,10 @@ impl Gemini {
// Getters
pub fn reader_title(&self) -> &Option<GString> {
&self.reader.title()
self.reader.title()
}
pub fn gobject(&self) -> &ClampScrollable {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/tab/item/page/content/text/gemini/reader.rs

@ -355,6 +355,6 @@ impl Reader { @@ -355,6 +355,6 @@ impl Reader {
}
pub fn gobject(&self) -> &TextView {
&self.widget.gobject()
self.widget.gobject()
}
}

14
src/app/browser/window/tab/item/page/content/text/gemini/reader/tag.rs

@ -75,30 +75,30 @@ impl Tag { @@ -75,30 +75,30 @@ impl Tag {
}
pub fn code(&self) -> &TextTag {
&self.code.gobject()
self.code.gobject()
}
pub fn h1(&self) -> &TextTag {
&self.h1.gobject()
self.h1.gobject()
}
pub fn h2(&self) -> &TextTag {
&self.h2.gobject()
self.h2.gobject()
}
pub fn h3(&self) -> &TextTag {
&self.h3.gobject()
self.h3.gobject()
}
pub fn list(&self) -> &TextTag {
&self.list.gobject()
self.list.gobject()
}
pub fn quote(&self) -> &TextTag {
&self.quote.gobject()
self.quote.gobject()
}
pub fn title(&self) -> &TextTag {
&self.title.gobject()
self.title.gobject()
}
}

2
src/app/browser/window/tab/item/page/input.rs

@ -56,6 +56,6 @@ impl Input { @@ -56,6 +56,6 @@ impl Input {
// Getters
pub fn gobject(&self) -> &Clamp {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/tab/item/page/input/response.rs

@ -81,6 +81,6 @@ impl Response { @@ -81,6 +81,6 @@ impl Response {
// Getters
pub fn gobject(&self) -> &Box {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/tab/item/page/input/response/control.rs

@ -45,6 +45,6 @@ impl Control { @@ -45,6 +45,6 @@ impl Control {
// Getters
pub fn gobject(&self) -> &Box {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/tab/item/page/input/response/control/counter.rs

@ -26,6 +26,6 @@ impl Counter { @@ -26,6 +26,6 @@ impl Counter {
// Getters
pub fn gobject(&self) -> &Label {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/tab/item/page/input/response/control/send.rs

@ -26,6 +26,6 @@ impl Send { @@ -26,6 +26,6 @@ impl Send {
// Getters
pub fn gobject(&self) -> &Button {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/tab/item/page/input/response/form.rs

@ -30,6 +30,6 @@ impl Form { @@ -30,6 +30,6 @@ impl Form {
}
pub fn gobject(&self) -> &TextView {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/tab/item/page/input/response/title.rs

@ -21,6 +21,6 @@ impl Title { @@ -21,6 +21,6 @@ impl Title {
// Getters
pub fn gobject(&self) -> &Label {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/tab/item/page/input/sensitive.rs

@ -66,6 +66,6 @@ impl Sensitive { @@ -66,6 +66,6 @@ impl Sensitive {
// Getters
pub fn gobject(&self) -> &Box {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/tab/item/page/input/sensitive/form.rs

@ -35,6 +35,6 @@ impl Form { @@ -35,6 +35,6 @@ impl Form {
}
pub fn gobject(&self) -> &PasswordEntryRow {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/tab/item/page/navigation.rs

@ -159,7 +159,7 @@ impl Navigation { @@ -159,7 +159,7 @@ impl Navigation {
// Getters
pub fn gobject(&self) -> &Box {
&self.widget.gobject()
self.widget.gobject()
}
pub fn home_url(&self) -> Option<GString> {

2
src/app/browser/window/tab/item/page/navigation/bookmark.rs

@ -24,6 +24,6 @@ impl Bookmark { @@ -24,6 +24,6 @@ impl Bookmark {
// Getters
pub fn gobject(&self) -> &Button {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/tab/item/page/navigation/history.rs

@ -125,6 +125,6 @@ impl History { @@ -125,6 +125,6 @@ impl History {
// Getters
pub fn gobject(&self) -> &Box {
&self.widget.gobject()
self.widget.gobject()
}
}

8
src/app/browser/window/tab/item/page/navigation/history/back.rs

@ -15,8 +15,7 @@ impl Back { @@ -15,8 +15,7 @@ impl Back {
pub fn new_arc(action_page_history_back: SimpleAction) -> Arc<Self> {
// Return activated struct
Arc::new(Self {
action_page_history_back: action_page_history_back
.clone(),
action_page_history_back: action_page_history_back.clone(),
widget: Widget::new_arc(action_page_history_back),
})
}
@ -24,8 +23,7 @@ impl Back { @@ -24,8 +23,7 @@ impl Back {
// Actions
pub fn update(&self, status: bool) {
// Update actions
self.action_page_history_back
.set_enabled(status);
self.action_page_history_back.set_enabled(status);
// Update child components
self.widget.update(status);
@ -33,6 +31,6 @@ impl Back { @@ -33,6 +31,6 @@ impl Back {
// Getters
pub fn gobject(&self) -> &Button {
&self.widget.gobject()
self.widget.gobject()
}
}

8
src/app/browser/window/tab/item/page/navigation/history/forward.rs

@ -15,8 +15,7 @@ impl Forward { @@ -15,8 +15,7 @@ impl Forward {
pub fn new_arc(action_page_history_forward: SimpleAction) -> Arc<Self> {
// Return activated struct
Arc::new(Self {
action_page_history_forward: action_page_history_forward
.clone(),
action_page_history_forward: action_page_history_forward.clone(),
widget: Widget::new_arc(action_page_history_forward),
})
}
@ -24,8 +23,7 @@ impl Forward { @@ -24,8 +23,7 @@ impl Forward {
// Actions
pub fn update(&self, status: bool) {
// Update actions
self.action_page_history_forward
.set_enabled(status);
self.action_page_history_forward.set_enabled(status);
// Update child components
self.widget.update(status);
@ -33,6 +31,6 @@ impl Forward { @@ -33,6 +31,6 @@ impl Forward {
// Getters
pub fn gobject(&self) -> &Button {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/tab/item/page/navigation/home.rs

@ -45,7 +45,7 @@ impl Home { @@ -45,7 +45,7 @@ impl Home {
// Getters
pub fn gobject(&self) -> &Button {
&self.widget.gobject()
self.widget.gobject()
}
pub fn url(&self) -> Option<GString> {

5
src/app/browser/window/tab/item/page/navigation/reload.rs

@ -22,8 +22,7 @@ impl Reload { @@ -22,8 +22,7 @@ impl Reload {
// Actions
pub fn update(&self, is_enabled: bool) {
// Update actions
self.action_page_reload
.set_enabled(is_enabled);
self.action_page_reload.set_enabled(is_enabled);
// Update child components
self.widget.update(is_enabled);
@ -31,6 +30,6 @@ impl Reload { @@ -31,6 +30,6 @@ impl Reload {
// Getters
pub fn gobject(&self) -> &Button {
&self.widget.gobject()
self.widget.gobject()
}
}

2
src/app/browser/window/tab/item/page/navigation/request.rs

@ -100,7 +100,7 @@ impl Request { @@ -100,7 +100,7 @@ impl Request {
// Getters
pub fn gobject(&self) -> &Entry {
&self.widget.gobject()
self.widget.gobject()
}
pub fn text(&self) -> GString {

Loading…
Cancel
Save