From 2f0150ade1b839c936bf7140a75baaca922165e7 Mon Sep 17 00:00:00 2001 From: Sophie Herold Date: Sat, 20 Jan 2024 14:44:29 +0100 Subject: [PATCH] image/zoom: Create animation with a fake target This avoids warnings when contructing the animation. --- src/widgets/image/zoom.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widgets/image/zoom.rs b/src/widgets/image/zoom.rs index be686c2..59d05ae 100644 --- a/src/widgets/image/zoom.rs +++ b/src/widgets/image/zoom.rs @@ -300,6 +300,8 @@ impl imp::LpImage { let animation = adw::TimedAnimation::builder() .duration(ZOOM_ANIMATION_DURATION) .widget(&*obj) + // The actual target will be set individually later + .target(&adw::CallbackAnimationTarget::new(|_| {})) .build(); animation.connect_done(glib::clone!(@weak obj => move |_| {