mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
remove extra getters, give name to gobjects
This commit is contained in:
parent
58f9ed537d
commit
582bef28b0
4 changed files with 16 additions and 21 deletions
|
|
@ -32,7 +32,7 @@ impl Bar {
|
|||
widget: Rc::new(Widget::new(
|
||||
&control.widget.gobject,
|
||||
&menu.widget.gobject,
|
||||
&tab.widget.gobject,
|
||||
&tab.widget.tab_bar,
|
||||
)),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,14 +2,14 @@ use adw::{TabBar, TabView};
|
|||
use gtk::prelude::IsA;
|
||||
|
||||
pub struct Widget {
|
||||
pub gobject: TabBar,
|
||||
pub tab_bar: TabBar,
|
||||
}
|
||||
|
||||
impl Widget {
|
||||
// Construct
|
||||
pub fn new(view: &TabView, start_action_widget: &impl IsA<gtk::Widget>) -> Self {
|
||||
Self {
|
||||
gobject: TabBar::builder()
|
||||
tab_bar: TabBar::builder()
|
||||
.autohide(false)
|
||||
.expand_tabs(false)
|
||||
.end_action_widget(start_action_widget) // @TODO find solution to append after tabs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue