[gnome-photos/wip/rishi/gesture-zoom: 4/10] image-view: Cancel any ongoing animation when (un)setting the GeglNode
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/gesture-zoom: 4/10] image-view: Cancel any ongoing animation when (un)setting the GeglNode
- Date: Mon, 16 Oct 2017 07:10:49 +0000 (UTC)
commit 9424011f66c8b8c6f9c7817a01427c3efd4cc74d
Author: Debarshi Ray <debarshir gnome org>
Date: Sun Oct 15 22:50:25 2017 +0200
image-view: Cancel any ongoing animation when (un)setting the GeglNode
src/photos-image-view.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-image-view.c b/src/photos-image-view.c
index 7a2a684..740dab9 100644
--- a/src/photos-image-view.c
+++ b/src/photos-image-view.c
@@ -1000,6 +1000,9 @@ photos_image_view_set_node (PhotosImageView *self, GeglNode *node)
if (self->node == node)
return;
+ if (self->zoom_animation != NULL)
+ egg_animation_stop (self->zoom_animation);
+
if (self->node != NULL)
{
g_signal_handlers_disconnect_by_func (self->node, photos_image_view_computed, self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]