bd989aae665fefa53a6826e72edca2323b5075c9
Add a click gesture to detect when we have to start monitoring cursor motion. Also add a motion event controller to react to cursor motion, and enable and disable the this motion controller on button press and release, respectively. Selection is implemented as a pair of GDateTimes stored in the month view struct. Whenever a selection begins, the start date is set; the end date is only set when moving the cursor. It is valid to have a start of the selection, and no end (meaning, a 1 day selection); it is, however, forbidden to have an end but not a start. Future improvements can be added later, such as scrolling when moving the cursor close to the edges of the month view. We're gonna have to live without that for now though. Implement the GcalView.clear_marks vfunc now that we have a selection to operate on.
GNOME Calendar
GNOME Calendar is a simple and beautiful calendar application for GNOME. We give a lot of attention to details, and as such, design is an essential and ongoing effort.
Useful links
- Homepage: https://wiki.gnome.org/Apps/Calendar
- Report issues: https://gitlab.gnome.org/GNOME/gnome-calendar/issues/
- Donate: https://www.gnome.org/friends/
- Translate: https://wiki.gnome.org/TranslationProject
Languages
C
97.6%
Meson
1.2%
CSS
0.7%
Python
0.3%
Shell
0.2%