[libhandy/wip/exalm/more-fixes: 1/5] carousel: Fix scroll timer
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/wip/exalm/more-fixes: 1/5] carousel: Fix scroll timer
- Date: Thu, 20 Jan 2022 08:24:34 +0000 (UTC)
commit d03265c3e99606f65512d76b5a89749394971214
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Jan 19 16:55:05 2022 +0500
carousel: Fix scroll timer
src/hdy-carousel.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/hdy-carousel.c b/src/hdy-carousel.c
index a95f9bea..f8e0d111 100644
--- a/src/hdy-carousel.c
+++ b/src/hdy-carousel.c
@@ -48,7 +48,7 @@ struct _HdyCarousel
GtkOrientation orientation;
guint animation_duration;
- gulong scroll_timeout_id;
+ guint scroll_timeout_id;
gboolean can_scroll;
};
@@ -360,7 +360,8 @@ scroll_event_cb (HdyCarousel *self,
duration = MIN (self->animation_duration, DEFAULT_DURATION);
self->can_scroll = FALSE;
- g_timeout_add (duration, (GSourceFunc) scroll_timeout_cb, self);
+ self->scroll_timeout_id =
+ g_timeout_add (duration, (GSourceFunc) scroll_timeout_cb, self);
return GDK_EVENT_STOP;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]