remove deprecated cursor decorators

This commit is contained in:
yggverse 2024-12-17 01:53:47 +02:00
parent f767c11789
commit e0cb5d7a0f
4 changed files with 5 additions and 11 deletions

View File

@ -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)

View File

@ -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()
}

View File

@ -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")

View File

@ -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")