image/zoom: Create animation with a fake target
This avoids warnings when contructing the animation.
This commit is contained in:
parent
0d060f6790
commit
2f0150ade1
1 changed files with 2 additions and 0 deletions
|
|
@ -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 |_| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue