mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
enshort namespaces, give name to gobject
This commit is contained in:
parent
a1617b2b1b
commit
dd5fada7c7
4 changed files with 9 additions and 10 deletions
|
|
@ -2,16 +2,16 @@ use adw::{TabView, ToolbarView};
|
|||
use gtk::{prelude::BoxExt, Box, Orientation};
|
||||
|
||||
pub struct Widget {
|
||||
pub gobject: Box,
|
||||
pub g_box: Box,
|
||||
}
|
||||
|
||||
impl Widget {
|
||||
// Construct
|
||||
pub fn new(header: &ToolbarView, tab: &TabView) -> Self {
|
||||
let gobject = Box::builder().orientation(Orientation::Vertical).build();
|
||||
gobject.append(header);
|
||||
gobject.append(tab);
|
||||
let g_box = Box::builder().orientation(Orientation::Vertical).build();
|
||||
g_box.append(header);
|
||||
g_box.append(tab);
|
||||
|
||||
Self { gobject }
|
||||
Self { g_box }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue