mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
drop extra construction not in use
This commit is contained in:
parent
fb44222e4e
commit
58c3d56cd4
@ -10,7 +10,7 @@ use gtk::{
|
||||
gio::SimpleAction,
|
||||
glib::{GString, TimeZone, Uri},
|
||||
prelude::{ActionExt, TextBufferExt, TextBufferExtManual, TextViewExt, ToVariant},
|
||||
EventControllerMotion, GestureClick, TextBuffer, TextTag, TextView, TextWindowType, WrapMode,
|
||||
EventControllerMotion, GestureClick, TextBuffer, TextTag, TextView, WrapMode,
|
||||
};
|
||||
|
||||
use std::{collections::HashMap, sync::Arc};
|
||||
@ -137,7 +137,6 @@ impl Reader {
|
||||
let action_page_open = action_page_open.clone();
|
||||
let gobject = widget.gobject().clone();
|
||||
move |_, _, x, y| {
|
||||
gobject.window_to_buffer_coords(TextWindowType::Widget, x as i32, y as i32);
|
||||
if let Some(iter) = gobject.iter_at_location(x as i32, y as i32) {
|
||||
for tag in iter.tags() {
|
||||
if let Some(uri) = links.get(&tag) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user