image/zoom: Create animation with a fake target

This avoids warnings when contructing the animation.
This commit is contained in:
Sophie Herold 2024-01-20 14:44:29 +01:00
parent 0d060f6790
commit 2f0150ade1

View file

@ -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 |_| {