mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
draft update action
This commit is contained in:
parent
4486904336
commit
68a97fdc88
8 changed files with 67 additions and 2 deletions
|
|
@ -13,7 +13,14 @@ use request::Request;
|
|||
use gtk::{prelude::BoxExt, Box, Orientation};
|
||||
|
||||
pub struct Navigation {
|
||||
// GTK
|
||||
widget: Box,
|
||||
// Components
|
||||
base: Base,
|
||||
history: History,
|
||||
reload: Reload,
|
||||
request: Request,
|
||||
bookmark: Bookmark,
|
||||
}
|
||||
|
||||
impl Navigation {
|
||||
|
|
@ -42,7 +49,23 @@ impl Navigation {
|
|||
widget.append(bookmark.widget());
|
||||
|
||||
// Result
|
||||
Self { widget }
|
||||
Self {
|
||||
widget,
|
||||
base,
|
||||
history,
|
||||
reload,
|
||||
request,
|
||||
bookmark,
|
||||
}
|
||||
}
|
||||
|
||||
// Actions
|
||||
pub fn update(&self) {
|
||||
self.base.update();
|
||||
self.history.update();
|
||||
self.reload.update();
|
||||
self.request.update();
|
||||
self.bookmark.update();
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue