save is_attention session state

This commit is contained in:
yggverse 2024-11-11 16:53:06 +02:00
parent 8917d14908
commit 57cdc4cee9
4 changed files with 21 additions and 13 deletions

View file

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