[libhandy/wip/exalm/leaflet-transltions: 4/12] 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/leaflet-transltions: 4/12] swipe-tracker: Add checks to hdy_swipe_tracker_shift_position()
- Date: Fri, 29 May 2020 10:05:45 +0000 (UTC)
commit 71014c7ed7ad2220458bd1df53d426d9584cbb07
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]