mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
remove extra referencers
This commit is contained in:
parent
6d7277d831
commit
a0e923eb7d
@ -252,7 +252,7 @@ impl Browser {
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &ApplicationWindow {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -173,7 +173,7 @@ impl Window {
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &Box {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -56,6 +56,6 @@ impl Header {
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &ToolbarView {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
@ -59,6 +59,6 @@ impl Bar {
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &Box {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
@ -19,6 +19,6 @@ impl Control {
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &WindowControls {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ impl Menu {
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &MenuButton {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -22,6 +22,6 @@ impl Tab {
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &TabBar {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
@ -19,6 +19,6 @@ impl Append {
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &Button {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
@ -217,7 +217,7 @@ impl Item {
|
||||
}
|
||||
|
||||
pub fn gobject(&self) -> &TabPage {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -420,7 +420,7 @@ impl Page {
|
||||
}
|
||||
|
||||
pub fn gobject(&self) -> &Box {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
|
||||
// Private helpers @TODO move outside
|
||||
|
@ -15,6 +15,6 @@ impl Default {
|
||||
}
|
||||
|
||||
pub fn gobject(&self) -> &Video {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
@ -355,6 +355,6 @@ impl Reader {
|
||||
}
|
||||
|
||||
pub fn gobject(&self) -> &TextView {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
@ -56,6 +56,6 @@ impl Input {
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &Clamp {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
@ -81,6 +81,6 @@ impl Response {
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &Box {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
@ -45,6 +45,6 @@ impl Control {
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &Box {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
@ -26,6 +26,6 @@ impl Counter {
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &Label {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
@ -26,6 +26,6 @@ impl Send {
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &Button {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
@ -30,6 +30,6 @@ impl Form {
|
||||
}
|
||||
|
||||
pub fn gobject(&self) -> &TextView {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
@ -21,6 +21,6 @@ impl Title {
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &Label {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
@ -66,6 +66,6 @@ impl Sensitive {
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &Box {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
@ -35,6 +35,6 @@ impl Form {
|
||||
}
|
||||
|
||||
pub fn gobject(&self) -> &PasswordEntryRow {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
@ -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> {
|
||||
|
@ -24,6 +24,6 @@ impl Bookmark {
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &Button {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
@ -125,6 +125,6 @@ impl History {
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &Box {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ impl Home {
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &Button {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
|
||||
pub fn url(&self) -> Option<GString> {
|
||||
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ impl Request {
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &Entry {
|
||||
&self.widget.gobject()
|
||||
self.widget.gobject()
|
||||
}
|
||||
|
||||
pub fn text(&self) -> GString {
|
||||
|
Loading…
x
Reference in New Issue
Block a user