mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
remove extra getters
This commit is contained in:
parent
3ce272cd70
commit
0af69d99f6
56 changed files with 240 additions and 710 deletions
|
|
@ -6,11 +6,11 @@ use widget::Widget;
|
|||
|
||||
use crate::app::browser::action::Action as BrowserAction;
|
||||
use crate::app::browser::window::action::Action as WindowAction;
|
||||
use adw::{TabView, ToolbarView};
|
||||
use adw::TabView;
|
||||
use std::rc::Rc;
|
||||
|
||||
pub struct Header {
|
||||
widget: Rc<Widget>,
|
||||
pub widget: Rc<Widget>,
|
||||
}
|
||||
|
||||
impl Header {
|
||||
|
|
@ -27,12 +27,7 @@ impl Header {
|
|||
|
||||
// Return new struct
|
||||
Self {
|
||||
widget: Rc::new(Widget::new(bar.gobject())),
|
||||
widget: Rc::new(Widget::new(&bar.widget.gobject)),
|
||||
}
|
||||
}
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &ToolbarView {
|
||||
self.widget.gobject()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue