Commit Graph
5713 Commits
Author SHA1 Message Date
Hari Rana a84cf3aed9 utils: Add macro for getting default application
This will be needed as a replacement for the removal of the
"context" property on every object.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/702>
2026-03-23 19:29:58 +00:00
mindonwarp 5a6a49cb3c Exclude test code from coverage in CI build
Use the new grcov-c-options from gnomeos-basic-ci to exclude the tests/
subdir from coverage calculations.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/732>
2026-03-23 19:16:14 +00:00
Zoey Ahmed 2300ed29cd notes: Add placeholder text if notes section empty
Move the textview box into an overlay, with a label as the overlay
child,
that appears only when the textview is empty, and remove the "Notes"
title for the preference group with the notes row in the event dialog.

This better indicates the notes is an input field to the user, compared
to the design before.

Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1081
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/714>
2026-03-23 18:25:12 +00:00
Alan Mortensen 7877a44169 Update Danish translation 2026-03-23 16:28:41 +00:00
Hari Rana 855fea34bf window: Only clear last_focused_widget if the widget has been focused
When opening the event editor dialog as a new event, `set_new_event_mode()`
immediately tries to focus the last focused widget, which won't work
because it is unfocusable. `focus_last_focused_widget()` then clears
clears the pointer regardless of whether the widget has successfully
grabbed focus or not. So, we want to only clear focus if the widget
has successfully grabbed focus.

Related: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1566
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/730>
2026-03-22 20:19:54 +00:00
Hari Rana 3c94e255ac window: Grab focus after closing Event Editor dialog
Fixes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1566
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/730>
2026-03-22 20:19:54 +00:00
Hari Rana d0bdc9f2af gui/month-view-row: Add upward variable
`!downward` is disambiguous and could merely be interpreted
as "not downward and not upward either". The `upward` variable
is explicit and describes literally the condition.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/729>
2026-03-21 10:39:16 -04:00
Hari Rana b75c44795e gui/meeting-row: Unset maximum width characters
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/728>
2026-03-20 11:27:54 -04:00
Hari Rana 4f067eeec7 gui/event-popover: Unset maximum width characters
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/728>
2026-03-20 11:27:54 -04:00
Hari RanaandJamie Gravendeel ec5884fcce gui/event-popover: Wrap content inside AdwClamp widget
The event popover contains a lot of text in different sizes, which
pushes us to magic-number the maximum amount of characters
(i.e. `max-width-chars`) and hope that all is well.

This approach addresses that by simply clamping the parent widget
to the desired size, allowing us to remove all instances
of `max-width-chars`.

Do note that `Adw.Clamp:tightening-threshold` is set to 400 by default,
which technically doesn't need to bind to `Adw.Clamp:maximum-size` at
the moment, but I decided to do it anyway in case we want to change
`Adw.Clamp:maximum-size` in the future and can't figure out why
the margins are off.

Co-authored-by: Jamie Gravendeel <me@jamie.garden>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/728>
2026-03-20 11:24:47 -04:00
Abdullahi Usman 24621b4d2b agenda-view: Respect local timezone
convert events' time to equivalent local time before sorting.

fixes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1324
2026-03-17 20:09:23 -03:00
Georges Basile Stavracas Neto 020611cd12 Post-branching version bump 2026-03-17 20:03:32 -03:00
Марко Костић 4172b4db75 Update Serbian translation 2026-03-16 20:40:00 +00:00
Asier Saratsua Garmendia 78d81928c2 Update Basque translation 2026-03-16 09:58:44 +00:00
Georges Basile Stavracas Neto 70388c9541 Post-release version bump 2026-03-14 12:25:49 -03:00
Georges Basile Stavracas Neto ff4d7f7d59 50.0 2026-03-14 12:24:48 -03:00
Changwoo Ryu a4af53c8ca Update Korean translation 2026-03-14 05:30:05 +00:00
Georges Basile Stavracas Neto 1281598aa7 contributing: Link to CoC and add no-LLM statement
This is copied ad verbatum from libadwaita, which itself was
introduced based on [1].

[1]
https://discourse.gnome.org/t/loupe-no-longer-allows-generative-ai-contributions/27327
2026-03-13 19:24:42 -03:00
Yuri Chornoivan 2203dab617 Update Ukrainian translation 2026-03-13 16:12:10 +00:00
Victor Dargallo cb8eb9ac67 Update Catalan translation 2026-03-13 13:34:21 +00:00
Abduqadir Abliz 206d0bbb15 Update Uighur translation 2026-03-12 19:31:09 +00:00
Davide Ferracin 454317bbf6 Update Italian translation 2026-03-12 07:35:00 +00:00
Hari Rana dd3e4dce4a readme: Use new default screenshot
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/724>
2026-03-12 01:02:30 -04:00
Hari Rana 39cee3cbc3 event-editor/multi-choice: Check if destructor exists before clearing
Without this check, the app supposedly crashes when we close it.

GtkListBox frees itself the same way.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/723>
2026-03-12 01:12:29 +00:00
Sabri Ünal 255a1ece56 Update Turkish translation 2026-03-11 23:11:08 +00:00
Jiri Grönroos 99b7607b1e Update Finnish translation 2026-03-11 16:37:03 +00:00
Alan Mortensen fdc67983b6 Update Danish translation 2026-03-11 16:34:02 +00:00
Aurimas Aurimas Černius 79224a93b6 Update Lithuanian translation 2026-03-11 14:34:03 +00:00
Daniel Rusek 19e0ff09e2 Update Czech translation 2026-03-11 14:00:12 +00:00
Zoey Ahmed f99678aea9 views/month-view: Check if focused widget is month cell
This fixes an issue where pressing Shift + Up/Down while focused on the
overflow button will result in a bail out when asserting the focused
widget has a month cell ancestor:

```
GcalMonthView:ERROR:../src/gui/views/gcal-month-view.c:1002:on_key_controller_key_pressed_cb: assertion failed: (GCAL_IS_MONTH_CELL (month_cell))
Bail out! GcalMonthView:ERROR:../src/gui/views/gcal-month-view.c:1002:on_key_controller_key_pressed_cb: assertion failed: (GCAL_IS_MONTH_CELL (month_cell))
```

When navigating between month cells with a keyboard, focus is set
on respective month cells, so checking whether the ancestor
is a month cell or not is not only unnecessary, it also causes
bugs like the assertion above.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/720>
2026-03-11 08:55:09 -04:00
Hugo Carvalho b18e2b68bd Update Portuguese translation 2026-03-11 12:13:00 +00:00
Victoria 02b983d501 Update Polish translation 2026-03-11 10:38:57 +00:00
Yaron Shahrabani 8df663a17e Update Hebrew translation 2026-03-11 09:36:36 +00:00
Antonio Marin c14137ad96 Update Romanian translation 2026-03-11 09:26:14 +00:00
Quentin PAGÈS a76dab159a Update Occitan translation 2026-03-11 09:23:21 +00:00
Alexander Alexandrov Shopov 6570feda1b Update Bulgarian translation 2026-03-11 08:32:56 +00:00
Martin eeca196df1 Update Slovenian translation 2026-03-11 08:23:31 +00:00
Guillaume Bernard 1603f00d85 Update French translation 2026-03-11 07:18:12 +00:00
Ekaterine Papava d53c33429d Update Georgian translation 2026-03-11 05:04:08 +00:00
luming zh 3f46c521ae Update Chinese (China) translation 2026-03-11 04:17:20 +00:00
Rafael Fontenelle 442cea9945 Update Brazilian Portuguese translation 2026-03-11 02:28:28 +00:00
Baurzhan Muftakhidinov da144dc98a Update Kazakh translation 2026-03-11 01:40:21 +00:00
Anders Jonsson 93025a2ced Update Swedish translation 2026-03-11 00:55:16 +00:00
Balázs Úr 39e095962f Update Hungarian translation 2026-03-11 00:46:54 +00:00
Anders Jonsson 6bbbeff76f Fix POTFILES.in
Follow-up to 5a663ee671, wrong file
was added to POTFILES.in

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/722>
2026-03-11 01:30:12 +01:00
Georges Basile Stavracas Neto 0c1636b7aa gui/multi-choice: Use g_clear_pointer more
Just a cosmetic improvement.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/721>
2026-03-10 20:45:35 -03:00
Guillaume Bernard 5a663ee671 multi-choice: Fix i18n of navigation button tooltips
The previous approach built tooltip strings by formatting a translated
category name (e.g. "Month") into a generic "Previous %1$s" template.
This is a classic gettext concatenation anti-pattern: languages with
grammatical gender (French, Spanish, German, …) need the adjective to
agree with the noun, and word order can differ from English, so
translators of the format string have no way to produce a correct
result.

Replace the format strings and their helper callbacks with two explicit
GObject properties on GcalMultiChoice: prev-button-tooltip-text and
next-button-tooltip-text. The buttons in the template now bind to
these properties directly. Each widget instance in gcal-date-chooser.blp
sets its own fully self-contained translatable string ("Previous month",
"Next month", "Previous year", "Next year"), giving translators all the
context they need to handle gender and word order correctly.

Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1547
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/721>
2026-03-10 20:43:02 -03:00
Hari Rana 50e048c7e0 utils: Turn number of weekdays into a macro
While "7" may be obvious in the context of calendaring that
it represents the number of week days, it often gives me the
impression of it being a magic number when I'm hyperfocused on certain
parts of the codebase for several consecutive hours. Turning the
number into a macro helps me scan functions much more easily.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/674>
2026-03-08 21:53:40 -04:00
Hari Rana da7b625e18 data: Update screenshot URLs
See:
- https://gitlab.gnome.org/Teams/Websites/static.gnome.org/-/merge_requests/47#note_2701250
- https://gitlab.gnome.org/Teams/Websites/static.gnome.org/-/merge_requests/48

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/719>
2026-03-08 20:15:26 -04:00
Bruce Cowan a3488ac3ad Update British English translation 2026-03-08 16:49:27 +00:00