mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
drop extra construction not in use
This commit is contained in:
parent
fb44222e4e
commit
58c3d56cd4
1 changed files with 1 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ use gtk::{
|
||||||
gio::SimpleAction,
|
gio::SimpleAction,
|
||||||
glib::{GString, TimeZone, Uri},
|
glib::{GString, TimeZone, Uri},
|
||||||
prelude::{ActionExt, TextBufferExt, TextBufferExtManual, TextViewExt, ToVariant},
|
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};
|
use std::{collections::HashMap, sync::Arc};
|
||||||
|
|
@ -137,7 +137,6 @@ impl Reader {
|
||||||
let action_page_open = action_page_open.clone();
|
let action_page_open = action_page_open.clone();
|
||||||
let gobject = widget.gobject().clone();
|
let gobject = widget.gobject().clone();
|
||||||
move |_, _, x, y| {
|
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) {
|
if let Some(iter) = gobject.iter_at_location(x as i32, y as i32) {
|
||||||
for tag in iter.tags() {
|
for tag in iter.tags() {
|
||||||
if let Some(uri) = links.get(&tag) {
|
if let Some(uri) = links.get(&tag) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue