From 58c3d56cd43cbdb93ef4645f21c61666850781d9 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 13 Oct 2024 06:17:59 +0300 Subject: [PATCH] drop extra construction not in use --- .../browser/window/tab/item/page/content/text/gemini/reader.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 e076cb50..8591288c 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 @@ -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) {