mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
remove extra members
This commit is contained in:
parent
70dfac115f
commit
6d84ee5cfe
@ -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
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user