mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-28 12:04:13 +00:00
remove deprecated cursor decorators
This commit is contained in:
parent
f767c11789
commit
e0cb5d7a0f
@ -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)
|
||||
|
@ -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()
|
||||
}
|
||||
|
@ -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")
|
||||
|
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user