Commit Graph
3360 Commits
Author SHA1 Message Date
Michael Catanzaro 18ae67cb59 Use more g_signal_connect_object()
Most of these are probably paranoid, not bugs. I haven't done an
exhaustive review to see what really needs it: that would be
time-consuming and require significant familiarity with the Calendar
codebase. This was just a quick check. Anyway, I vote for paranoid
when it comes to using g_signal_connect() regardless. It's dangerous,
and there's no reason to ever leave a signal connected after the user
data object has been destroyed.

Fixes #423
2019-09-14 23:28:42 +00:00
Georges Basile Stavracas Neto 9644c30eee date-time-utils: Fix weekday calculation
GNOME Calendar needs to deal with two different
weekday ranges:

 1. Sunday → 0 ... Saturday → 6
 2. Monday → 1 ... Sunday → 7 (used by GDateTime)

When converting (2) into (1), the correct calculation
is `weekday % 7`.

However, gcal_date_time_get_start_of_week() was doing
`weekday - 1` instead.

Fix it and do the correct calculation instead.

https://gitlab.gnome.org/GNOME/gnome-calendar/issues/451
2019-09-14 11:14:01 -03:00
Georges Basile Stavracas Neto 450aa5e158 log: Remove g_get_current_time 2019-09-14 10:46:14 -03:00
Georges Basile Stavracas Neto e39bd95c87 log: Use g_autofree 2019-09-14 10:39:38 -03:00
Georges Basile Stavracas Neto 43f5de8a0c main: Trivial style cleanup 2019-09-13 18:53:13 -03:00
Georges Basile Stavracas Neto 22596db1d1 window: Readd <Ctrl>n shortcut
https://gitlab.gnome.org/GNOME/gnome-calendar/issues/383
2019-09-13 18:49:05 -03:00
Roger 88ce5407d5 Update README.md 2019-09-13 21:13:35 +00:00
Roger a8882b441b Add info to README 2019-09-13 21:13:35 +00:00
Georges Basile Stavracas Neto 5b49c4fc46 3.34.0 2019-09-09 12:31:13 -03:00
Ryuta Fujii 0a663eb87b Update Japanese translation 2019-09-08 15:11:48 +00:00
Ryuta Fujii d14c99d9d8 Update Japanese translation 2019-09-08 14:58:27 +00:00
Sabri Ünal 6b878e24ce Update Turkish translation 2019-09-06 19:30:15 +00:00
Milo Casagrande 38a09fc8ef Update Italian translation 2019-09-05 11:52:29 +00:00
Michael Catanzaro 5d2c0faf41 Fix use-after-free in GcalManager code
This was originally discovered and fixed by Milan Crha; I'm just
forward-porting his fix to the master branch. self->clients takes
ownership of this source but we don't currently have ownership here,
leading to a double free vulnerability.

Fixes #435
2019-09-03 12:07:26 +00:00
Hannie Dumoleyn 5fd4c91e2b Update Dutch translation 2019-09-03 08:35:46 +00:00
A S Alam 77a07f469a Update Punjabi translation 2019-09-02 14:33:42 +00:00
Marek Černocký 9ef59d5856 Updated Czech translation 2019-09-02 16:30:29 +02:00
Ask Hjorth Larsen cb8b9517b7 Updated Danish translation 2019-08-29 02:13:27 +02:00
Jordi Mas 36e4145296 Update Catalan translation 2019-08-28 15:42:16 +02:00
Марко Костић ad80d81776 Update Serbian translation 2019-08-26 19:44:48 +00:00
Seong-ho Cho 5167d9a45c Update Korean translation 2019-08-26 11:36:45 +00:00
Fran Dieguez 69c6061766 Update Galician translation 2019-08-25 22:39:35 +00:00
Georges Basile Stavracas Neto 666679f123 year-view: Remove stray message 2019-08-25 17:57:48 +03:00
Michael Catanzaro 748b7207e7 Don't leave dangling pointers in the GcalEvent cache
The cache has an unowned pointer to the GcalEvent's UID. We need to
update the cache with the GcalEvent's new UID to avoid use-after-free.

Fixes #434
2019-08-25 17:39:01 +03:00
Balázs Úr 15bf7892fa Update Hungarian translation 2019-08-24 18:41:50 +00:00
Rūdolfs Mazurs 5226f18c65 Update Latvian translation 2019-08-24 17:06:25 +00:00
Danial Behzadi 36bde05a22 Update Persian translation 2019-08-22 14:11:08 +00:00
Piotr Drąg 8c2b0a268b Update Polish translation 2019-08-20 17:05:15 +02:00
Jiri Grönroos cb3afe1258 Update Finnish translation 2019-08-17 13:24:54 +00:00
Bruce Cowan bfc8e6cdd4 Update British English translation 2019-08-13 21:19:32 +00:00
Aurimas Černius 8bcf0ff682 Updated Lithuanian translation 2019-08-08 22:27:41 +03:00
Tim Sabsch 9d4dfb6840 Update German translation 2019-08-05 22:17:01 +00:00
Kristjan SCHMIDT 12afb17e40 Update Esperanto translation 2019-08-05 20:13:47 +00:00
Anders Jonsson 5f42966895 Update Swedish translation 2019-08-05 19:47:11 +00:00
Charles Monzat 9f306afcbe Update French translation 2019-08-05 11:05:04 +00:00
Jordi Mas 7f5441ae07 Update Catalan translation 2019-08-05 06:14:55 +02:00
Florentina Mușat d1ad43522f Update Romanian translation 2019-08-03 12:08:05 +00:00
Jor Teron b06780906c Update Karbi translation 2019-08-02 07:17:54 +00:00
Javier Jardón 2b3023232f flatpak: build intltool before e-d-s
Needed now that it is not part of the runtime/SDK.
2019-07-31 19:01:37 +01:00
Kjartan Maraas 7f153c309b Update Norwegian Bokmål translation 2019-07-26 08:00:50 +00:00
Jor Teron f388504583 Update Karbi translation 2019-07-24 01:22:48 +00:00
Jordi Mas 97ea053f0e Update Catalan translation 2019-07-23 15:26:18 +02:00
Asier Sarasua Garmendia 829d25bc56 Update Basque translation 2019-07-20 07:05:03 +00:00
Goran Vidović a39bef0bf4 Update Croatian translation 2019-07-19 20:48:52 +00:00
Georges Basile Stavracas Neto f81320bdd1 3.33.4 2019-07-16 21:30:31 -03:00
Georges Basile Stavracas Neto 75d24803ed tests: Temporarily disable discoverer test 2019-07-16 21:30:31 -03:00
Jor Teron 05d71047c1 Add Karbi translation 2019-07-16 17:20:30 +00:00
Georges Basile Stavracas Neto 00e883ca63 year-view: Optimize sidebar update
Use the cached events to fill the sidebar, instead of
querying e-d-s every time we need an update.
2019-07-13 20:44:27 -03:00
Georges Basile Stavracas Neto 9aec1c097d new-calendar-page: Properly cleanup sources
We can't control a widget's property at destruction time.
Cleanup the sources directly.
2019-07-13 20:07:30 -03:00
Georges Basile Stavracas Neto b49486d0f9 calendar: Disconnect from the visible signals as well
Missed from the initial implementation.
2019-07-13 19:54:47 -03:00