From 74b0183e1c99415cdbe40a64db60cb81ed8deaf5 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Thu, 31 Oct 2024 08:17:32 +0100 Subject: [PATCH] swappe --- resources/playbar.blp | 14 +++++++------- src/ui/playbar.rs | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/resources/playbar.blp b/resources/playbar.blp index cb23ad6..7abc917 100644 --- a/resources/playbar.blp +++ b/resources/playbar.blp @@ -82,7 +82,7 @@ template $AudreyUiPlaybar: Adw.Bin { upper: bind template.playbin as <$AudreyPlaybin>.duration; }; - change-value => $on_play_position_seek (template); + change-value => $on_play_position_seek () swapped; } [end] @@ -105,7 +105,7 @@ template $AudreyUiPlaybar: Adw.Bin { valign: center; sensitive: bind $playbin_active (template.playbin as <$AudreyPlaybin>.state as <$AudreyPlaybinState>) as ; - clicked => $on_skip_backward_clicked (template); + clicked => $on_skip_backward_clicked () swapped; } Button { @@ -113,7 +113,7 @@ template $AudreyUiPlaybar: Adw.Bin { valign: center; sensitive: bind $playbin_active (template.playbin as <$AudreyPlaybin>.state as <$AudreyPlaybinState>) as ; - clicked => $seek_backward (template); + clicked => $seek_backward () swapped; } Button { @@ -121,7 +121,7 @@ template $AudreyUiPlaybar: Adw.Bin { valign: center; sensitive: bind $can_press_play (template.playbin as <$AudreyPlaybin>.state as <$AudreyPlaybinState>, template.playbin as <$AudreyPlaybin>.play-queue-length) as ; - clicked => $on_play_pause_clicked (template); + clicked => $on_play_pause_clicked () swapped; } Button { @@ -129,7 +129,7 @@ template $AudreyUiPlaybar: Adw.Bin { valign: center; sensitive: bind $playbin_active (template.playbin as <$AudreyPlaybin>.state as <$AudreyPlaybinState>) as ; - clicked => $seek_forward (template); + clicked => $seek_forward () swapped; } Button { @@ -137,7 +137,7 @@ template $AudreyUiPlaybar: Adw.Bin { valign: center; sensitive: bind $playbin_active (template.playbin as <$AudreyPlaybin>.state as <$AudreyPlaybinState>) as ; - clicked => $on_skip_forward_clicked (template); + clicked => $on_skip_forward_clicked () swapped; } } } @@ -153,7 +153,7 @@ template $AudreyUiPlaybar: Adw.Bin { icon-name: bind $mute_button_icon_name (template.playbin as <$AudreyPlaybin>.mute) as ; valign: center; - clicked => $on_mute_toggle (template); + clicked => $on_mute_toggle () swapped; } Scale { diff --git a/src/ui/playbar.rs b/src/ui/playbar.rs index 5999343..ecb128a 100644 --- a/src/ui/playbar.rs +++ b/src/ui/playbar.rs @@ -2,7 +2,7 @@ mod imp { use adw::prelude::*; use adw::subclass::prelude::*; use glib::subclass::InitializingObject; - use glib::{gformat, gstr, GString}; + use glib::{gformat, GString}; use gtk::{gdk, glib}; use std::cell::{Cell, RefCell};