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



commit 20ec6a5099dedd880d30d752526c02253bdbd054
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 318bd17c..24398349 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]