mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
remove extra methods
This commit is contained in:
parent
e025961568
commit
ef067fbb70
3 changed files with 1 additions and 9 deletions
|
|
@ -88,7 +88,7 @@ impl Navigation {
|
||||||
pub fn update(&self, progress_fraction: Option<f64>) {
|
pub fn update(&self, progress_fraction: Option<f64>) {
|
||||||
self.home.update(self.request.uri());
|
self.home.update(self.request.uri());
|
||||||
self.history.update();
|
self.history.update();
|
||||||
self.reload.update(!self.request.is_empty());
|
self.reload.update(!self.request.text().is_empty());
|
||||||
self.request.update(progress_fraction);
|
self.request.update(progress_fraction);
|
||||||
self.bookmark.update();
|
self.bookmark.update();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -103,10 +103,6 @@ impl Request {
|
||||||
&self.widget.gobject()
|
&self.widget.gobject()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_empty(&self) -> bool {
|
|
||||||
self.widget.is_empty()
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn text(&self) -> GString {
|
pub fn text(&self) -> GString {
|
||||||
self.widget.text()
|
self.widget.text()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -211,10 +211,6 @@ impl Widget {
|
||||||
&self.gobject
|
&self.gobject
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_empty(&self) -> bool {
|
|
||||||
0 == self.gobject.text_length()
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn text(&self) -> GString {
|
pub fn text(&self) -> GString {
|
||||||
self.gobject.text()
|
self.gobject.text()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue