[libhandy/wip/exalm/oops: 1/2] swipe-tracker: Add checks to hdy_swipe_tracker_shift_position()



commit 5de4550153049a2f2f4de620ad5759d52a75c7f2
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri May 29 01:58:52 2020 +0500

    swipe-tracker: Add checks to hdy_swipe_tracker_shift_position()
    
    Signed-off-by: Alexander Mikhaylenko <alexm gnome org>

 src/hdy-swipe-tracker.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/hdy-swipe-tracker.c b/src/hdy-swipe-tracker.c
index f91fb00a..3d4ade50 100644
--- a/src/hdy-swipe-tracker.c
+++ b/src/hdy-swipe-tracker.c
@@ -911,6 +911,8 @@ void
 hdy_swipe_tracker_shift_position (HdySwipeTracker *self,
                                   gdouble          delta)
 {
+  g_return_if_fail (HDY_IS_SWIPE_TRACKER (self));
+
   if (self->state != HDY_SWIPE_TRACKER_STATE_PENDING &&
       self->state != HDY_SWIPE_TRACKER_STATE_SCROLLING)
     return;


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