Commit Graph
6006 Commits
Author SHA1 Message Date
Hari Rana dfb9ea645c common/date-chooser: Use GcalGizmo
GcalGizmo allows us to handle focus within child widgets
much more cleanly, as it no longer requires us to override the
ancestor and re-iterating through children.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/760>
2026-09-16 12:22:36 +00:00
ARAKHNID 2c4faa8f3a date-chooser: Clamp to first day of month when clicking previous/next buttons
When clicking the previous/next buttons, the view might not be aligned
to the start of the month, which can cause confusion.

Clamping the date to the first of the month removes this confusion by
being consistent. This also matches the behavior of the previous/next
buttons in the main toolbar.

Closes #1606

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/821>
2026-09-16 12:00:33 +00:00
Georges Basile Stavracas Neto c534f00366 event-widget: Rework transparency of past events
Instead of applying the "dimmed" CSS class - which comes from Adwaita
and applies an overall opacity change - add a new custom "past" CSS
class and change the opacity of specific elements.

This avoids opacity in the group, which in turn allows GTK to avoid
rendering these event widgets in offscreens, which should be faster.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/828>
2026-09-16 11:57:32 +00:00
Brage Fuglseth 2a3e1b02b5 utils: Use correct URL for GNOME Meet
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/834>
2026-09-16 07:07:37 -04:00
Martin 375512b0ad Update Slovenian translation 2026-09-16 05:23:48 +00:00
mindonwarp 97f5e3c0c1 po: Add missing source files to POTFILES.in
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/833>
2026-09-15 18:46:00 +02:00
Alen 94ecf902e4 Update Bosnian translation 2026-09-15 16:24:15 +00:00
Alen 45903c2125 Update Bosnian translation 2026-09-14 19:52:27 +00:00
Alen 9cf3a57447 Update Bosnian translation 2026-09-14 18:41:38 +00:00
Georges Basile Stavracas Neto fdf193a50a Post-branching version bump 2026-09-13 17:47:34 -03:00
Georges Basile Stavracas Neto e7f284ae27 51.0 2026-09-13 17:37:54 -03:00
Hari Rana 89ff82924b gui/gizmo: Introduce GcalGizmo
This is a utility widget akin to GtkGizmo[1] and AdwGizmo[2].
It is designed for use in complex widgets which require additional
features such as snapshotting, measuring/allocating, and
focusing capabilities.

We want to implement an entry row widget that allows multi-line content.
The first implementation had two widgets: GcalNotesRow for the widget
itself, and GcalNotesTitle to contain and animate the title by overriding
the measure() and size_allocate() class methods. The GcalNotesTitle
widget ended up becoming a basic widget that could easily be handled
by GcalGizmo. The new implementation simply uses GcalGizmo.[3]

Another potential user of GcalGizmo is GcalDateChooser, where the
date grid contains complicated logic for handling focus to a child widget.
Since GcalGizmo is designed to give full reign over focusability, we can
also use it to simplify focus. The layout manager can quickly be swapped to
GtkBinLayout since we don't want to handle custom measure/allocation logic.[4]

[1]: <https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkgizmo.c>
[2]: <https://gitlab.gnome.org/GNOME/libadwaita/-/blob/main/src/adw-gizmo.c>
[3]: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/737>
[4]: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/760>

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/790>
2026-09-09 14:57:14 -04:00
Roy-Magne Mo d1b7d4aa7b Update Norwegian Nynorsk translation 2026-09-09 12:38:53 +00:00
Xavi IvarsandVictor Dargallo 594e1967e4 Update Catalan translation
Co-authored-by: Victor Dargallo <victordargallo@disroot.org>
Co-authored-by: Xavi Ivars <xavi.ivars@gmail.com>
2026-09-08 22:02:31 +00:00
Bruce Cowan 5d5fc4128a Update British English translation 2026-09-08 18:26:26 +00:00
Antonio Marin 90f1e95220 Update Romanian translation 2026-09-08 13:13:53 +00:00
Alan Mortensen b10d58d63a Update Danish translation 2026-09-07 17:16:38 +00:00
Vasil Pupkin 69c85450d2 Update Belarusian translation 2026-09-07 12:44:16 +00:00
Juliano de Souza Camargoandyuriotavio fc94caf4d9 Update Brazilian Portuguese translation
Co-authored-by: yuriotavio <yuriotavio@hotmail.com>
2026-09-07 10:39:37 +00:00
Balázs Úr 9d4ed095a4 Update Hungarian translation 2026-09-07 09:04:49 +00:00
Alexander Alexandrov Shopov 978546c2f8 Update Bulgarian translation 2026-09-05 20:47:43 +00:00
Martin 4944b9127d Update Slovenian translation 2026-09-05 10:49:12 +00:00
Zelda Ahmed 30f1849dcd Update POTFILES with gcal-notes-section.blp
`gcal-notes-section.blp` now contains a string that needs translating but I
forgot to add the file to POTFILES in the original MR at
https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/714

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/826>
2026-09-05 10:07:16 +00:00
Alen be7ee6d4c6 Update Bosnian translation 2026-09-05 08:36:14 +00:00
Jor Teron 806e6feaa0 Update Karbi translation 2026-09-04 17:21:31 +00:00
Christian Kirbach 704e3cbca0 Update German translation 2026-09-03 18:26:10 +00:00
Hari Rana 9838bbee11 gui/application: Add support URL to about dialog
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/823>
2026-09-03 15:48:12 +00:00
Daniel Mustieles 065ae8a21a Updated Spanish translation 2026-09-03 16:59:38 +02:00
Balázs Úr ba5229d998 Update Hungarian translation 2026-09-01 18:53:01 +00:00
Arlewatyerre Tuhoro-Bell b6678b9b82 Update Maori translation 2026-08-31 21:45:22 +00:00
acey dot 841cbbd32f Update Serbian translation 2026-08-31 15:29:43 +00:00
Hari Rana a64e3b59a2 gui/calendar-list: Remove calendar-list style class
This fixes a bug where the calendar list in the sidebar would not
change the background color when hovering over a calendar.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/824>
2026-08-31 13:45:30 +00:00
Arlewatyerre Tuhoro-Bell 2dd110b9b4 Add Maori translation 2026-08-31 13:09:25 +00:00
Марко Костић b1d9e28920 Update Serbian translation
(cherry picked from commit 118fe0c1ecd61268a7c60bcef1a5f458272e1922)
2026-08-30 09:34:42 +00:00
Марко Костић 3ab6ecf416 Update Serbian translation
(cherry picked from commit 5c66ae1d380d8a8664612704cc29d16052e806f8)
2026-08-30 09:32:57 +00:00
Maximiliano Sandoval 28e0b65017 Stop using G_GNUC_CONST in _get_type functions
As per g_type_ensure's documentation it is incorrect to mark _get_type
functions with G_GNUC_CONST since they have side-effects on their first
run.

See https://gitlab.gnome.org/GNOME/glib/-/merge_requests/5223 for more
details.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/819>
2026-08-29 11:06:13 +00:00
Zelda Ahmed dbb786d0e8 tests/range: Add bug base URL
Every other unit test included a link to calendar's bug reporting except
test-range.c, so lets include that

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/820>
2026-08-29 10:48:24 +01:00
Georges Basile Stavracas Neto a8493b55ff Post-release version bump
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/818>
2026-08-28 19:31:18 -04:00
Georges Basile Stavracas Neto 176d29260e 51.rc
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/818>
2026-08-28 19:31:18 -04:00
Felipe Alves pipe-felipe 56128e0574 views/week-view: Fix inverted Ctrl+scroll zoom direction
Ctrl+scrolling with a mouse wheel zoomed in the opposite direction
than expected: scrolling up zoomed out and scrolling down zoomed in,
which is inconsistent with other GNOME apps such as Loupe and
Nautilus.

Negate the scroll delta in both smooth (touchpad) and discrete
(mouse wheel) scrolling cases, so scrolling up now zooms in.

Fixes #1633

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/815>
2026-08-28 22:01:23 +00:00
Hari Rana 1b10e66078 gui/event-widget: Guard event popover's pointing coordinates on multi-day events
A follow-up on https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/677#note_2628484,
which prevents the event popover from pointing outside the event
widget's boundaries on multi-day events when activated before exceeding
the drag threshold:
https://docs.gtk.org/gtk4/property.Settings.gtk-dnd-drag-threshold.html

This is mainly useful for people who fidget and may sloppily
click and drag event widgets (before triggering the drag operation),
causing the popover to place itself in unpredictable locations.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/697>
2026-08-28 21:55:35 +00:00
tytan652 fbbf6d854c tests/discoverer: Add file variations
Enables testing properly the ICS header check which is ignored if
content-type is text/calendar.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/814>
2026-08-28 21:51:52 +00:00
tytan652 d1a400c856 utils/source-discoverer: Allow ICS with LF line breaks
RFC 5545 states that CRLF line breaks should be used but other consumer
seems to allow CR being missing.

https://datatracker.ietf.org/doc/html/rfc5545#section-3.1

Note, that the check result was ignored if the content-type is
text/calendar.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/814>
2026-08-28 21:51:52 +00:00
Anthony Zang 7693feb248 views/month: Cancel active animation before starting new ones
Before, two finger scrolls on mint cinnamon (X11 scroll instead of
wayland) caused month view to crash. g_clear_obj... orphan would an
animation allowing two animations to exist at once, causing conflict
when the orphan continued in the background. The two animations would be
generated due to X11's legacy support of both discrete notch scrolling
and the two finger smooth scrolling.

I replaced g_clear... with cancel_row_offset_animation in
snap_to_top_row which ensures that the orphaned animation is dead prior
to reassigning variables.

Fixes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/work_items/1616
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/801>
2026-08-28 21:48:26 +00:00
Niklas Wimmer 1d8995c30b ci: Enabling gobject-linter
The gnomeos-basic-ci component already has support for gobject-linter
and we only need to add a config file to make it run and show up as
part of a merge request's code quality check.

I set the property enum convention to "legacy", as that is the style
we currently use. Since this is only a matter of style, I do not see
the point in changing all (>40 occurrences) of that just because.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/799>
2026-08-28 21:43:10 +00:00
Emin Tufan Çetin f728bef39b Update Turkish translation 2026-08-28 15:57:19 +00:00
Seong-ho Cho 224432073f Update Korean translation 2026-08-27 23:00:38 +00:00
Hari Rana b2b6002573 views/month-view: Skip view when tabbing backward with Control on event widget
When an event widget is focused, there is no way to skip the entire
view with key combinations.

This patch addresses this by allowing the user to skip the entire
view when pressing Ctrl+Shift+Tab.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/817>
2026-08-26 21:16:41 -04:00
Hari Rana 3c044ce77c views/month-view: Skip view when tabbing with Control on month cell
We want to skip the entire view, because, otherwise, it runs
gcal_month_view_row_focus_underlying_cell().

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/817>
2026-08-26 21:11:15 -04:00
Hari Rana e1bc583597 views/month-view: Use debug messages
Given the complexity of keyboard navigation in the month view, it
may be useful to rely on debug entries/exits to debug edge cases.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/817>
2026-08-26 20:08:28 -04:00