month-view: allow changing months with scrolling

It is very natural and intuitive to try and change the current date
by scrolling. The current implementation of the Month view, however,
blatantly ignores scroll events.

Fix that by hearing to the scrolling events and changing the month
when the scroll is enough.
This commit is contained in:
Georges Basile Stavracas Neto
2016-10-01 19:15:54 -03:00
parent 55b21874a7
commit eb7ad4959b
3 changed files with 70 additions and 2 deletions
+3
View File
@@ -123,4 +123,7 @@ gchar* format_utc_offset (gint64
gint get_alarm_trigger_minutes (GcalEvent *event,
ECalComponentAlarm *alarm);
gboolean should_change_date_for_scroll (gdouble *scroll_value,
GdkEventScroll *scroll_event);
#endif // __GCAL_UTILS_H__