From 5529fcaa712434432a9e69b8545b4f5445581a68 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 11 Oct 2024 01:16:23 +0300 Subject: [PATCH] drop label mod --- src/app/browser/window/tab.rs | 6 ++++-- src/app/browser/window/tab/item.rs | 24 ++++-------------------- 2 files changed, 8 insertions(+), 22 deletions(-) diff --git a/src/app/browser/window/tab.rs b/src/app/browser/window/tab.rs index 5ba5c261..f0d0ef63 100644 --- a/src/app/browser/window/tab.rs +++ b/src/app/browser/window/tab.rs @@ -106,8 +106,9 @@ impl Tab { 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(item.label(), item.page(), item.is_initially_current()); */ if page_navigation_request_text.is_none() { item.page_navigation_request_grab_focus(); // @TODO @@ -223,11 +224,12 @@ impl Tab { 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(), - ); + ); */ } } Err(e) => return Err(e.to_string()), diff --git a/src/app/browser/window/tab/item.rs b/src/app/browser/window/tab/item.rs index 8500ea83..9722ed9f 100644 --- a/src/app/browser/window/tab/item.rs +++ b/src/app/browser/window/tab/item.rs @@ -1,9 +1,7 @@ mod database; -mod label; mod page; use database::Database; -use label::Label; use page::Page; use sqlite::Transaction; @@ -21,7 +19,6 @@ pub struct Item { // useful as widget name in GTK actions callback id: GString, // Components - label: Arc