From e0cb5d7a0fccf1b0e21d7fe3cd0139d80745a000 Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 17 Dec 2024 01:53:47 +0200 Subject: [PATCH] remove deprecated cursor decorators --- src/app/browser/window/tab/item/page/search/form/close.rs | 3 +-- .../browser/window/tab/item/page/search/form/match_case.rs | 7 ++----- .../window/tab/item/page/search/form/navigation/back.rs | 3 +-- .../window/tab/item/page/search/form/navigation/forward.rs | 3 +-- 4 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/app/browser/window/tab/item/page/search/form/close.rs b/src/app/browser/window/tab/item/page/search/form/close.rs index 3c2562cf..dbb6a622 100644 --- a/src/app/browser/window/tab/item/page/search/form/close.rs +++ b/src/app/browser/window/tab/item/page/search/form/close.rs @@ -1,10 +1,9 @@ -use gtk::{gdk::Cursor, Align, Button}; +use gtk::{Align, Button}; const MARGIN: i32 = 6; pub fn new() -> Button { Button::builder() - .cursor(&Cursor::from_name("default", None).unwrap()) .icon_name("window-close-symbolic") .margin_end(MARGIN) .margin_start(MARGIN) diff --git a/src/app/browser/window/tab/item/page/search/form/match_case.rs b/src/app/browser/window/tab/item/page/search/form/match_case.rs index 4112c5d5..57114151 100644 --- a/src/app/browser/window/tab/item/page/search/form/match_case.rs +++ b/src/app/browser/window/tab/item/page/search/form/match_case.rs @@ -1,8 +1,5 @@ -use gtk::{gdk::Cursor, CheckButton}; +use gtk::CheckButton; pub fn new() -> CheckButton { - CheckButton::builder() - .cursor(&Cursor::from_name("default", None).unwrap()) - .label("Match case") - .build() + CheckButton::builder().label("Match case").build() } diff --git a/src/app/browser/window/tab/item/page/search/form/navigation/back.rs b/src/app/browser/window/tab/item/page/search/form/navigation/back.rs index b5d03f42..18527cb2 100644 --- a/src/app/browser/window/tab/item/page/search/form/navigation/back.rs +++ b/src/app/browser/window/tab/item/page/search/form/navigation/back.rs @@ -1,4 +1,4 @@ -use gtk::{gdk::Cursor, prelude::WidgetExt, Align, Button}; +use gtk::{prelude::WidgetExt, Align, Button}; pub struct Back { pub button: Button, @@ -11,7 +11,6 @@ impl Back { pub fn new() -> Self { Self { button: Button::builder() - .cursor(&Cursor::from_name("default", None).unwrap()) .icon_name("go-up-symbolic") .sensitive(false) .tooltip_text("Back") diff --git a/src/app/browser/window/tab/item/page/search/form/navigation/forward.rs b/src/app/browser/window/tab/item/page/search/form/navigation/forward.rs index fb8357a4..530a6ee1 100644 --- a/src/app/browser/window/tab/item/page/search/form/navigation/forward.rs +++ b/src/app/browser/window/tab/item/page/search/form/navigation/forward.rs @@ -1,4 +1,4 @@ -use gtk::{gdk::Cursor, prelude::WidgetExt, Align, Button}; +use gtk::{prelude::WidgetExt, Align, Button}; pub struct Forward { pub button: Button, @@ -11,7 +11,6 @@ impl Forward { pub fn new() -> Self { Self { button: Button::builder() - .cursor(&Cursor::from_name("default", None).unwrap()) .icon_name("go-down-symbolic") .sensitive(false) .tooltip_text("Forward")