Commit Graph
4973 Commits
Author SHA1 Message Date
Felipe Anibal 3ce7575479 utils/date-time-utils: change date_time_from_icaltime to use tz offset
Getting the time zone based on the location of the event doesn't work
with virtual time zones, causing the offset to be incorrect on the
import dialog. This changes the function to adjust the time zone of the
GDateTime based on the offset from UTC, which should work for both
virtual and real timezones.

See #1243
2024-11-19 18:10:02 +00:00
Titouan Real 69de2e6c3f EventEditor: Add shortcuts 2024-11-19 18:57:08 +01:00
Hari Rana a0ba5552fd flatpak: Use local directory in gnome-calendar module
This is mainly beneficial for those who build flatpaks using
`flatpak-builder`, but it won't affect GNOME Builder users.
2024-11-16 08:15:41 -05:00
Hari Rana 1a5d9ca2b7 flatpak: Move Flatpak manifest path to build-aux
Most projects have the manifest at the root of the `build-aux`
directory, so let's just do that
2024-11-16 08:15:34 -05:00
Vasil Pupkin 6f7ad8ae37 Update Belarusian translation 2024-11-11 14:30:15 +00:00
Martin 3f8ca3f45c Update Slovenian translation 2024-11-08 21:00:43 +00:00
Georges Basile Stavracas Neto 5283bfe546 event-editor/dialog: Compose calendars model
Currently we only show writable calendars in the calendar row, but
for read-only events, the read-only calendar must be selected. But
that's impossible because it's not in the model.

Change the model to a flattened list as follows:

+ FlattenListModel -----------+
|                             |
| + writable calendars -----+ |
| |                         | |
| | - Calendar 1            | |
| | - Calendar 2            | |
| | - Calendar 3            | |
| | [...]                   | |
| |                         | |
| +-------------------------+ |
| + read-only calendars ----+ |
| |                         | |
| | - Calendar 1            | |
| | [...]                   | |
| |                         | |
| +-------------------------+ |
+-----------------------------+

The read-only calendars list only ever has 1 item: the calendar
of the current event, and only if the event is in a read-only
calendar.
2024-11-08 17:38:10 -03:00
Georges Basile Stavracas Neto 1354467dc1 event-editor/dialog: Bind sensitive to writable property
So that the row is insensitive for read-only calendars.
2024-11-08 17:37:28 -03:00
Georges Basile Stavracas Neto 5b0c44c06c calendar-combo-row: Fix a memory leak 2024-11-08 17:17:47 -03:00
Titouan Real 82e756c293 Update po/POTFILES.in 2024-11-08 19:09:56 +01:00
Titouan Real aca797d192 Remove GcalCalendarRow 2024-11-08 19:09:56 +01:00
Titouan Real 923cb668da Make GcalEventEditor use GcalCalendarComboRow 2024-11-08 19:09:56 +01:00
Titouan Real 3ca07464a2 Make GcalImportDialog use GcalCalendarComboRow 2024-11-08 19:09:56 +01:00
Titouan Real 90d2b262a3 Add GcalCalendarComboRow & GcalCalendarComboRowItem 2024-11-08 19:09:52 +01:00
Abdullahi Usman b44c712a3a agenda-view: Sort events in chronological order
agenda-view sort_func uses gcal_date_time_compare_date, which is
insufficient for this case.
we want to compare events date(s) down to the last minute, so that we
can be able to sort them in chronological order.
we use the g_date_time_compare function.

Fixes: #936

Co-authored-by: Georges Basile Stavracas Neto
<georges.stavracas@gmail.com>
2024-11-06 10:53:09 -03:00
Georges Basile Stavracas Neto 416a369f0c window: Remove unused error handling 2024-11-06 10:43:42 -03:00
Georges Basile Stavracas Neto 2c3eceaa48 style: Use CSS variable for event radius 2024-11-06 10:40:32 -03:00
Georges Basile Stavracas Neto 1e8fa097e0 window: Simplify CSS recalculation code 2024-11-06 10:36:46 -03:00
Georges Basile Stavracas Neto 963e6a28dd style: Remove unused CSS style 2024-11-06 10:24:18 -03:00
Jamie Gravendeel b3b6c5fd5d style: Bump 6px border radii to 9px
See https://gitlab.gnome.org/GNOME/libadwaita/-/commit/d450cb30c59694f604d4396993281797035bc51c
2024-11-06 13:21:57 +00:00
Georges Basile Stavracas Neto 6b92164ff2 importer: Don't duplicate string unnecessarily 2024-11-06 10:05:27 -03:00
Georges Basile Stavracas Neto 2d75d3fb30 importer: Assert instead of trace
We go to great lengths to convert to UTF-8, so it's only fair to
expect it to be UTF-8
2024-11-06 10:04:26 -03:00
Georges Basile Stavracas Neto fa88b4999c importer: Cosmetics 2024-11-06 10:04:03 -03:00
Otávio Silva 98ced271ef importer: convert different file encodings to UTF-8
Files that aren't in the UTF-8 encoding were breaking the import dialog.
This tries to guess the encoding of the file before processing it, based
on the Byte Order Mark (BOM), and converts it to UTF-8.

Fixes #1243
2024-11-05 21:10:29 +00:00
Милош Поповић 0936b498e2 Update Serbian (Latin) translation
(cherry picked from commit 1c26a593dbc56ea3018d1b2a4dd98cae8fc835f9)
2024-11-01 23:02:59 +00:00
Милош Поповић a7d36815b3 Update Serbian translation
(cherry picked from commit 1c19ceda42c4d98e64b304a03321ed68be73ebcc)
2024-11-01 23:02:34 +00:00
Nathan Follens 4a1933538e Update Dutch translation
(cherry picked from commit 69d41f0e7a0f667f61d303ba7e1bd5d3c2ee7e3e)
2024-10-27 21:17:31 +00:00
Vasil Pupkin edde7d7f1d Update Belarusian translation 2024-10-23 19:41:09 +00:00
Martin af76bae0bd Update Slovenian translation 2024-10-23 07:12:59 +00:00
Enzo MAROS 0e09efc43c window: Create calendar-management-dialog on demand
When the user deletes a calendar in the calendar management dialog, a
popover allows them to undo the deletion. The calendar is fully deleted
only when the toast is dismissed or when the toast reaches its timeout.
When the user closes the calendar management dialog without dismissing
the toast and before the end of the timeout, the calendar can still be
manipulated for a short period of time.

To fix this, I removed the calendar-management-dialog from the UI of the
window, and made the window create and destroy the dialog on demand.
This forces the toast overlay to dismiss all toasts.
2024-10-22 12:35:45 +00:00
Danial Behzadi e23ca8422c Update Persian translation 2024-10-22 12:00:22 +00:00
Austin Pringle 11db394643 gcal-week-header: Change week header capitalization on week number heading. 2024-10-22 11:48:15 +00:00
Automeris naranja 061c027520 event-editor-dialog: Use an AdwBanner when a calendar is read-only
Using a tooltip to inform when the calendar is read-only won't
work in touch devices.

This change also improves a11y, as Orca now reads this message,
something that wasn't happening before.
2024-10-22 11:29:53 +00:00
Brage Fuglseth 3c85d7d19e metainfo: Expand and modernize
- Reorder to be consistent with other apps
- Remove `<help>` link to Discourse as that tag is intended for
  persistent docs rather than a place to ask for help
- Remove deprecated `.desktop` suffix from `<id>`
- Add brand colors
- Update HW requirements to be more in accordance with AppStream
  recommendations
2024-10-17 17:52:46 +00:00
Owl Burst 4d58e5052f docs: Remove TODO.md
The TODO list in the root directory of the project seems to be heavily outdated, with the last change to it being done 6 years ago

Removed the file outright in favour of the issue boards and such that seem to be used way more frequently nowadays
2024-10-17 20:14:28 +03:00
Daniel Mustieles 4cc45314b5 Update Spanish translation 2024-10-17 06:09:56 +00:00
Rūdolfs Mazurs 640e249c07 Update Latvian translation 2024-10-13 10:37:56 +00:00
Georges Basile Stavracas Neto 004fdb0f3d utils: Shuffle and cleanup some paintable code
- It's only used in GcalShellSearchProvider so move it there.
- GdkTexture implements GIcon so no need to convert to a pixbuf.
2024-10-11 22:55:03 -03:00
Georges Basile Stavracas Neto c5424c8bfa calendar-management/new-calendar: Remove unused code 2024-10-11 22:39:04 -03:00
Georges Basile Stavracas Neto fc642bb65d build: Remove enum templates
Meson has a handy way to do that without these template files. Let's
just use it
2024-10-11 22:36:35 -03:00
Fabio Tomat b873efdccd Update Friulian translation 2024-10-07 13:38:03 +00:00
Efstathios Iosifidis 32e1b7eea9 Update Greek translation 2024-09-29 16:54:14 +00:00
Georges Basile Stavracas Neto 127199e28c Post-release version bump 2024-09-16 10:43:40 -03:00
Georges Basile Stavracas Neto 41208bc746 47.0 2024-09-16 10:28:53 -03:00
Jose Riha 56bb2d1101 Update Slovak translation 2024-09-14 07:44:48 +00:00
Jordi Mas 20fa25c7ee Update Catalan translation 2024-09-14 08:27:28 +02:00
Alexandre Franke 5e559044df Update French translation 2024-09-12 13:04:37 +00:00
Alan Mortensen 10e5d8b383 Update Danish translation 2024-09-11 16:32:13 +00:00
Jordi Mas i Hernandez 919fa4742e Update Catalan translation 2024-09-11 16:23:20 +00:00
Artur S0 b109dfe755 Update Russian translation 2024-09-10 12:47:36 +00:00