Browse Source

remove extra references

master
yggverse 4 weeks ago
parent
commit
7e1c03f8dd
  1. 2
      src/app/browser/window/tab/item/page/content/text/gemini/reader.rs
  2. 4
      src/app/browser/window/tab/item/page/input.rs

2
src/app/browser/window/tab/item/page/content/text/gemini/reader.rs

@ -213,7 +213,7 @@ impl Reader {
let tag = TextTag::builder().wrap_mode(WrapMode::Word).build(); let tag = TextTag::builder().wrap_mode(WrapMode::Word).build();
buffer.tag_table().add(&tag); buffer.tag_table().add(&tag);
buffer.insert_with_tags(&mut buffer.end_iter(), &line, &[&tag]); buffer.insert_with_tags(&mut buffer.end_iter(), line, &[&tag]);
buffer.insert(&mut buffer.end_iter(), "\n"); buffer.insert(&mut buffer.end_iter(), "\n");
} }

4
src/app/browser/window/tab/item/page/input.rs

@ -38,7 +38,7 @@ impl Input {
size_limit: Option<usize>, size_limit: Option<usize>,
) { ) {
self.widget.update(Some( self.widget.update(Some(
&Response::new_rc(action_page_open, base, title, size_limit).gobject(), Response::new_rc(action_page_open, base, title, size_limit).gobject(),
)); ));
} }
@ -50,7 +50,7 @@ impl Input {
max_length: Option<i32>, max_length: Option<i32>,
) { ) {
self.widget.update(Some( self.widget.update(Some(
&Sensitive::new_rc(action_page_open, base, title, max_length).gobject(), Sensitive::new_rc(action_page_open, base, title, max_length).gobject(),
)); ));
} }

Loading…
Cancel
Save