From 86347c42b9bb39397b8b53c29b3ed27f49469177 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 14 Oct 2024 07:30:29 +0300 Subject: [PATCH] drop deprecated method --- .../browser/window/tab/item/page/navigation/widget.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/app/browser/window/tab/item/page/navigation/widget.rs b/src/app/browser/window/tab/item/page/navigation/widget.rs index 4dfa497e..57e0af94 100644 --- a/src/app/browser/window/tab/item/page/navigation/widget.rs +++ b/src/app/browser/window/tab/item/page/navigation/widget.rs @@ -1,7 +1,4 @@ -use gtk::{ - prelude::{BoxExt, WidgetExt}, - Box, Button, DirectionType, Entry, Orientation, -}; +use gtk::{prelude::BoxExt, Box, Button, Entry, Orientation}; use std::sync::Arc; pub struct Widget { @@ -34,11 +31,6 @@ impl Widget { Arc::new(Self { gobject }) } - // Actions - pub fn focus(&self) { - self.gobject.child_focus(DirectionType::Right); - } - // Getters pub fn gobject(&self) -> &Box { &self.gobject