mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
save is_attention session state
This commit is contained in:
parent
8917d14908
commit
57cdc4cee9
4 changed files with 21 additions and 13 deletions
|
|
@ -20,8 +20,7 @@ impl Widget {
|
|||
child: &impl IsA<gtk::Widget>,
|
||||
title: Option<&str>,
|
||||
position: Option<i32>,
|
||||
is_pinned: bool,
|
||||
is_selected: bool,
|
||||
state: (bool, bool, bool),
|
||||
) -> Self {
|
||||
let gobject = match position {
|
||||
Some(value) => {
|
||||
|
|
@ -37,6 +36,9 @@ impl Widget {
|
|||
None => tab_view.append(child),
|
||||
};
|
||||
|
||||
let (is_pinned, is_selected, is_attention) = state;
|
||||
|
||||
gobject.set_needs_attention(is_attention);
|
||||
gobject.set_keyword(keyword);
|
||||
|
||||
gobject.set_title(match title {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue