[libhandy/wip/exalm/leaflet-fixes: 14/16] stackable-box: Reset cancel status after ending a transition



commit b028a78b30ca92b56e63994af632447047514579
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri May 29 14:43:02 2020 +0500

    stackable-box: Reset cancel status after ending a transition
    
    Currently we set it when starting a transition. This usually works,
    except when the transition is NONE or the duration is 0.
    
    To avoid it automatically cancelling any (even programmatic) transitions,
    reset the status at the end of the transition.
    
    Signed-off-by: Alexander Mikhaylenko <alexm gnome org>

 src/hdy-stackable-box.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/hdy-stackable-box.c b/src/hdy-stackable-box.c
index 51e93165..e6e9b0f1 100644
--- a/src/hdy-stackable-box.c
+++ b/src/hdy-stackable-box.c
@@ -391,6 +391,8 @@ hdy_stackable_box_child_progress_updated (HdyStackableBox *self)
         self->last_visible_child = NULL;
       }
 
+      self->child_transition.is_cancelled = FALSE;
+
       g_object_freeze_notify (G_OBJECT (self));
       g_object_notify_by_pspec (G_OBJECT (self), props[PROP_VISIBLE_CHILD]);
       g_object_notify_by_pspec (G_OBJECT (self), props[PROP_VISIBLE_CHILD_NAME]);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]