[libhandy/wip/exalm/oops: 4/5] swipe-tracker: Add checks to hdy_swipe_tracker_shift_position()
- From: Alexander Mikhaylenko <alexm src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [libhandy/wip/exalm/oops: 4/5] swipe-tracker: Add checks to hdy_swipe_tracker_shift_position()
 
- Date: Tue,  2 Jun 2020 09:59:15 +0000 (UTC)
 
commit e7ddcbdcee73d33bb8c4a1b002f401f7a9ce25d8
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]