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



commit c638420c67a3630e7b3079d328f06d11d00873f6
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]