remove extra getters, give gobject names

This commit is contained in:
yggverse 2024-12-02 14:28:07 +02:00
parent cd49b36887
commit 2a59bebea9
17 changed files with 104 additions and 221 deletions

View file

@ -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
}
}