remove extra referencers

This commit is contained in:
yggverse 2024-11-08 05:09:19 +02:00
parent 6d7277d831
commit a0e923eb7d
31 changed files with 43 additions and 48 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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