From 8a5a25e6d37302a99a6299c73022633c0ef35b80 Mon Sep 17 00:00:00 2001 From: Hollow Man Date: Sat, 9 Sep 2023 14:05:27 +0200 Subject: [PATCH] js: Fix calendar scroll Update to Clutter.Event getter methods in Clutter.Actor vfuncs as the old way no longer works Related to https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2872 Signed-off-by: Hollow Man Part-of: --- js/ui/calendar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/calendar.js b/js/ui/calendar.js index 8fe9472c1..1371abf33 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -552,8 +552,8 @@ export const Calendar = GObject.registerClass({ this._firstDayIndex = this.get_n_children(); } - vfunc_scroll_event(scrollEvent) { - switch (scrollEvent.direction) { + vfunc_scroll_event(event) { + switch (event.get_scroll_direction()) { case Clutter.ScrollDirection.UP: case Clutter.ScrollDirection.LEFT: this._onPrevMonthButtonClicked();