enable tab append, rename struct members

This commit is contained in:
yggverse 2024-10-11 02:00:26 +03:00
parent 1293da7955
commit a1aaebdb7e
3 changed files with 12 additions and 14 deletions

View file

@ -96,10 +96,8 @@ impl Tab {
// Register dynamically created tab components in the HashMap index
self.index.borrow_mut().insert(item.id(), item.clone());
// Append new Notebook page
/* @TODO
self.widget
.append(item.label(), item.page(), item.is_initially_current()); */
// Append new page
self.widget.gobject().add_page(item.gobject(), None);
if page_navigation_request_text.is_none() {
item.page_navigation_request_grab_focus(); // @TODO