diff --git a/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs b/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs index eaed8588..08c3672c 100644 --- a/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs +++ b/src/app/browser/window/tab/item/page/content/text/gemini/reader.rs @@ -215,7 +215,7 @@ impl Reader { .wrap_mode(WrapMode::Word) .build(); - if !tag.add(&a) { + if !tag.text_tag_table.add(&a) { panic!() // @TODO handle } diff --git a/src/app/browser/window/tab/item/page/content/text/gemini/reader/tag.rs b/src/app/browser/window/tab/item/page/content/text/gemini/reader/tag.rs index 185d51ab..199f1cad 100644 --- a/src/app/browser/window/tab/item/page/content/text/gemini/reader/tag.rs +++ b/src/app/browser/window/tab/item/page/content/text/gemini/reader/tag.rs @@ -14,7 +14,7 @@ use list::List; use quote::Quote; use title::Title; -use gtk::{TextTag, TextTagTable}; +use gtk::TextTagTable; pub struct Tag { pub text_tag_table: TextTagTable, @@ -63,9 +63,4 @@ impl Tag { title, } } - - // Actions - pub fn add(&self, text_tag: &TextTag) -> bool { - self.text_tag_table.add(text_tag) - } }