mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
rename container constructors
This commit is contained in:
parent
e514312f84
commit
0a0d7b0481
8 changed files with 12 additions and 11 deletions
|
|
@ -24,11 +24,11 @@ pub struct Label {
|
|||
|
||||
impl Label {
|
||||
// Construct
|
||||
pub fn new(name: GString, is_pinned: bool) -> Arc<Self> {
|
||||
pub fn new_arc(name: GString, is_pinned: bool) -> Arc<Self> {
|
||||
// Init components
|
||||
let pin = Pin::new(is_pinned);
|
||||
let title = Title::new();
|
||||
let widget = Widget::new(name, pin.gobject(), title.gobject());
|
||||
let pin = Pin::new_arc(is_pinned);
|
||||
let title = Title::new_arc();
|
||||
let widget = Widget::new_arc(name, pin.gobject(), title.gobject());
|
||||
|
||||
// Init label struct
|
||||
let label = Arc::new(Self {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue