mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
remove extra getters, give gobject names
This commit is contained in:
parent
cd49b36887
commit
2a59bebea9
17 changed files with 104 additions and 221 deletions
|
|
@ -18,7 +18,7 @@ use std::{rc::Rc, time::Duration};
|
|||
pub struct Content {
|
||||
window_action: Rc<WindowAction>,
|
||||
tab_action: Rc<TabAction>,
|
||||
gobject: Box,
|
||||
pub gobject: Box,
|
||||
}
|
||||
|
||||
impl Content {
|
||||
|
|
@ -97,7 +97,7 @@ impl Content {
|
|||
base,
|
||||
(self.window_action.clone(), self.tab_action.clone()),
|
||||
);
|
||||
self.gobject.append(text.gobject());
|
||||
self.gobject.append(&text.scrolled_window);
|
||||
text
|
||||
}
|
||||
|
||||
|
|
@ -107,11 +107,4 @@ impl Content {
|
|||
self.gobject.remove(&child);
|
||||
}
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
||||
/// Get reference to `Self` gobject
|
||||
pub fn gobject(&self) -> &Box {
|
||||
&self.gobject
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue