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
pub fn gobject(&self) -> &ApplicationWindow {
&self.widget.gobject()
self.widget.gobject()
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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()
}
}

View File

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

View File

@ -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()
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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> {

View File

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

View File

@ -125,6 +125,6 @@ impl History {
// Getters
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> {
// 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 {
// 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 {
// Getters
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> {
// 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 {
// 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 {
// Getters
pub fn gobject(&self) -> &Button {
&self.widget.gobject()
self.widget.gobject()
}
}

View File

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

View File

@ -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 {
// Getters
pub fn gobject(&self) -> &Button {
&self.widget.gobject()
self.widget.gobject()
}
}

View File

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