Commit Graph
3747 Commits
Author SHA1 Message Date
Georges Basile Stavracas Neto febfe599ff Revert "Don't claim to support opening ICS files"
This reverts commit b378c672df.

We now support it.
2021-08-16 18:26:21 -03:00
Georges Basile Stavracas Neto e689f18b1e Add file importing dialog
Add a file importing dialog, and pass through files received from command
line.

Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/5
2021-08-16 18:26:21 -03:00
Georges Basile Stavracas Neto a080d8ec0f utils: Protect against NULL description 2021-08-16 15:27:19 -03:00
Georges Basile Stavracas Neto e90c67a57d manager: Ensure default calendar property is always set 2021-08-16 15:26:59 -03:00
Georges Basile Stavracas Neto aec1d8d5cd calendar-page: Add rounded corners to listbox 2021-08-06 17:37:40 -03:00
Georges Basile Stavracas Neto 8c71c60e8d calendar-management: Switch to HdyWindow
Make GcalCalendarManagementDialog an HdyWindow subclass,
and adapt the widgetry to work with the new parent class.

Use HdyHeaderBar everywhere.
2021-08-06 17:32:58 -03:00
Tjipke van der Heide 36278b1bb4 Update Frisian translation 2021-08-02 13:52:21 +00:00
Georges Basile Stavracas Neto 10946539c8 41.alpha 2021-07-29 20:07:27 -03:00
Niels De Graef b308da6743 flatpak: Bump libical version
libical 3.0.7 doesn't compile anymore in the CI, but the latest version
does. Just bump to that version to fix CI issues.
2021-07-25 11:23:28 +02:00
Piotr Drąg 7c99c6d987 Update POTFILES.in 2021-07-18 17:08:35 +02:00
Georges Basile Stavracas Neto 68160348dc Introduce GcalEventPopover
GcalEventPopover gives a preview of the event, and handy access
to the event description and information. It also allows easily
joining meetings if any one if available.

The list of supported meeting URLs is small now, but I hope
more people will contribute as we go.

It is also possible to edit the event through an edit button.
2021-06-27 18:45:12 -03:00
Georges Basile Stavracas Neto 01ee4a2b49 utils: Add Google extractor
Google events have an exotic section at the end of their event
descriptions, we can parse that to find some information like
the meeting URL.
2021-06-27 18:36:05 -03:00
Georges Basile Stavracas Neto eaa4ad1a6e Begin 41 development cycle 2021-06-21 18:36:56 -03:00
Georges Basile Stavracas Neto 7079cf2a80 quick-add-popover: Properly localize string arrays
N_() only marks strings for translation, it is necessary to call gettext()
when using the strings.
2021-06-21 18:34:53 -03:00
Georges Basile Stavracas Neto bdce9b29ba quick-add-popover: Don't leak GDateTime
Not sure how this went through.
2021-06-21 18:34:52 -03:00
Georges Basile Stavracas Neto a7d40352b7 quick-add-popover: Mark string arrays const
As they really are.
2021-06-21 18:34:50 -03:00
Tjipke van der Heide 40ed249e4e Add Frisian translation 2021-06-15 08:35:49 +00:00
Dušan Kazik 446ee386dc Update Slovak translation 2021-06-13 20:01:20 +00:00
Georges Basile Stavracas Neto f2e62576c4 40.2 2021-06-03 16:22:38 -03:00
Marco Trevisan (Treviño) fdb69db48a weather-service: Enable met.no provider
As per the switch to libgweather 40 with commits 216a8984 and a2a6d2e4
we already comply with met.no TOS [1] as we already provide explicitly
the application contact info and (implicitly, being a GApplication) the
application-id.

So we can enable the met.no weather provider, making the weather
forecast to work again.

[1] https://api.met.no/doc/TermsOfService

Fixes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/682
2021-05-31 20:02:36 +02:00
Marco Trevisan (Treviño) 75eb496e07 build: Depend on gweather-3.0 40
This is required as per commits 07338446 and a2a6d2e4
2021-05-25 15:00:07 +02:00
Quentin PAGÈS 7319482db9 Update Occitan translation 2021-05-13 14:02:06 +00:00
Georges Basile Stavracas Neto c3211a888d 40.1 2021-05-11 16:58:41 -03:00
Sebastian Keller af7a17ef01 event: Fix multiday detection for all-day events
All-day events always use UTC, so when the multiday detection code was
converting them to the local timezone, they span an additional day if
the local timezone is not the same as UTC. This was leading to all-day
events always being considered multiday events.

Fix this by ignoring the timezone for all-day events, like all other
comparisons do. Also don't consider all-day events spanning 1 day to be
multiday since as per RFC 5545 the end date is non-inclusive and if
omitted to be start + 1 day.
2021-05-11 19:35:31 +00:00
Rajat Jain 19ee70f9ab window: Add missing keyboard shortcut
Add missing accelerator for <Alt>+Down as it was
mentioned in shortcuts dialog but not implemented.

Fixes #492

Signed-off-by: Rajat Jain <rajatjain.ix@gmail.com>
2021-05-11 19:11:31 +00:00
Sebastian Keller 44e2420645 range: Handle zero-length ranges when calculating overlap
Zero length ranges, such as for events without a DTEND could be
considered to overlap a range if they were at exactly the end of the
range. The end of a range however is the first date that is supposed to
not overlap, so a zero-length range on exactly this point should not be
considered overlapping.

This fixes cases where all-day events from the next month could show up
on the same day of the current month if they did not have a DTEND.

This also adds tests for all possible cases of such zero-length events
overlapping.

Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/701
2021-04-21 13:59:26 +00:00
Pawan Chitrakar ce969c35b7 Update Nepali translation 2021-04-17 02:54:04 +00:00
Kalev Lember cd5595d20f appdata: Fix the date for 40.0 release 2021-04-13 01:14:08 +00:00
Johannes Maibaum a2a6d2e4aa weather-service: Set contact_info to DOAP file URL
Currently, GNOME Calendar does not set up the contact_info needed in
libgweather 40 API. This leads to the following assertion, and no
weather forecast info being shown in Calendar:

`gweather_info_update: assertion 'info->contact_info != NULL' failed.`

To fix the assertion, set the URL to the DOAP file on the master branch.
GNOME Weather does the same, see:

https://gitlab.gnome.org/GNOME/gnome-weather/-/commit/6763f7dc9cb25eac4aa13e94e07ea932a42c8e4d

Part of #682
2021-04-13 01:07:37 +00:00
Johannes Maibaum 78d0df1404 window: Remove nested CLAMP() on switching views 2021-04-11 19:06:38 +02:00
Johannes Maibaum 4c51539168 window: Fix GcalWindow's change-view accelerators
Commit 2d5b1aa9d1 removed the
GCAL_WINDOW_VIEW_DAY variant of the GcalWindowView enum. Since then, the
change-view accelerators to switch to GCAL_WINDOW_VIEW_{WEEK,MONTH,YEAR}
were broken, as the accelerator setup was assuming
GCAL_WINDOW_VIEW_WEEK==1, which isn't true anymore with
GCAL_WINDOW_VIEW_DAY being gone.

This change fixes the enum values in the accelerator setup.
2021-04-11 19:06:05 +02:00
Sebastian Keller fb242dd109 time-zone-monitor: Use local timezone as fallback without dbus service
On systems without anything providing the org.freedesktop.timedate1
interface, the timezone returned by the monitor would always be NULL,
because it was never set. This can lead to crashes in places that expect
the monitor to always return a valid timezone. So in that case use the
local timezone from when the monitor got initialized.

Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/703
2021-04-11 00:27:08 +00:00
Sebastian Keller a0d24cd5d8 time-zone-monitor: Fix timezone leak on timezone changes
The old timezone was never being unref'ed before it got overwritten.
2021-04-11 00:27:08 +00:00
Pawan Chitrakar 899897c5fc Update Nepali translation 2021-04-07 16:34:25 +00:00
Chao-Hsiung Liao dc6931abb9 Update Chinese (Taiwan) translation 2021-04-03 00:30:58 +00:00
Zander Brown e0fbb922bb Update British English translation 2021-04-02 13:29:32 +00:00
Nathan Follens 636bad1f75 Update Dutch translation 2021-04-01 18:19:59 +00:00
Yaron Shahrabani 94ab4b7d8f Update Hebrew translation 2021-03-30 22:19:18 +00:00
Yosef Or Boczko 169a1485c1 Update Hebrew translation 2021-03-29 19:07:16 +00:00
Boyuan Yang fc74ecf62f Update Chinese (China) translation 2021-03-25 02:58:29 +00:00
Georges Basile Stavracas Neto 62749c165a 40.0 2021-03-22 15:54:41 -03:00
Georges Basile Stavracas Neto 9a636f33e5 tests: Disable unauthorized test again
Needs more love.

Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/700
2021-03-22 15:54:41 -03:00
Milo Casagrande 3c5e38f8e9 Update Italian translation 2021-03-15 07:49:06 +00:00
Ask Hjorth Larsen 78344b0fc5 Updated Danish translation 2021-03-13 16:47:17 +01:00
Kjartan Maraas e7aba03364 Update Norwegian Bokmål translation 2021-03-13 14:24:59 +00:00
Georges Basile Stavracas Neto c37a9ef9ff Post-release version bump 2021-03-12 11:13:08 -03:00
Georges Basile Stavracas Neto 2465b9e7be 40.rc 2021-03-12 11:06:59 -03:00
Georges Basile Stavracas Neto 46c225e07c build: Bump GLib dependency
We depend on a newer version now.
2021-03-12 11:06:07 -03:00
Georges Basile Stavracas Neto d38c1f2f41 tests: Enable unauthorized discovery test
This one is actually implemented, what's not implemented is the WebDAV one.
2021-03-12 11:03:26 -03:00
Rūdolfs Mazurs d694402522 Update Latvian translation 2021-03-07 14:46:19 +00:00