Commit Graph
3622 Commits
Author SHA1 Message Date
Georges Basile Stavracas Neto 87ce5e6d49 project: Move css-code.h to src/gui/
It is only used there.
2020-10-30 13:47:38 -03:00
Georges Basile Stavracas Neto eb954505e4 project: Split meson files in subdirs
It allows us to better control what each subdir does, etc. This is
only the first step; we want to also split GResources, etc.
2020-10-30 13:45:50 -03:00
Michael Catanzaro 9ac1528e54 gcal-timeline: completed_calendars should be unsigned
In on_calendar_monitor_completed_cb() we have this assert:

g_assert (self->completed_calendars <= g_hash_table_size (self->calendars));

That is comparing a signed integer to unsigned. This is dangerous. We
could add casts to say that we really want to do it, but
completed_calendars should never be negative, so might as well use
unsigned.
2020-10-14 09:14:34 -05:00
Michael Catanzaro c2c89b667e gcal-timeline: never reset completed_calendars
Since 78cb11c64d, GcalCalendarMonitor now
notifies when a completed calendar transitions to incomplete, and
GcalTimeline decrements its completed_calendars counter. But we forgot
to remove the code that resets completed_calendars when previously
needed. That's not required anymore, because we can trust
GcalCalendarMonitor to do the right thing.

In my case, I have 5 calendars enabled and 6 total. When starting
gnome-calendar, all 5 are successively completed, and
completed_calendars increments from 0 -> 1 -> 2 -> 3 -> 4 -> 5. Then,
when transitioning month view from January 2020 to December 2019, we
call reset_completed_calendars() and completed_calenders gets clobbered
to 0. Then it decrements from 0 -> -1 -> -2 -> -3 -> -4 -> -5 as the
GcalCalendarMonitors notify that they are no longer completed. Well,
that is what would happen, if it didn't crash when decrementing to -1.
We assert -1 <= 6 (the total number of calendars) and crash because -1
gets promoted to a huge unsigned int, since we're comparing signed to
unsigned. (That crash would have been avoided if we used
-Wsign-compare, although that warning would not have caught the logic
problem.)

Anyway, since GcalMonitor now notifies when calendars are no longer
complete, it is safe to simply remove reset_completed_calendars().
GcalTimeline will still notify if it needs to change its own complete
property (in on_calendar_monitor_completed_cb).

Fixes #567
Fixes #636
Fixes #638
Fixes #647
Fixes #650
2020-10-14 09:13:12 -05:00
Juliano de Souza Camargo f18d4121bf Update Portuguese translation
(cherry picked from commit a1fc5459ba6a1d9840b80385153559c7d2b5f1dc)
2020-10-11 14:27:13 +00:00
Felix Eckhofer 2452ea07fb docs: Fix file name in HACKING guide 2020-09-28 12:01:32 +00:00
Stephan Woidowski caef9f96d9 Update British English translation
(cherry picked from commit 75866ff912c0546a7ce6186e14390870f2a63f00)
2020-09-27 12:22:44 +00:00
Asier Sarasua Garmendia f3d57d288a Update Basque translation
(cherry picked from commit 00934401426887b3af5e514c2416e1baeba670e4)
2020-09-19 07:23:24 +00:00
Cheng-Chia Tseng 8c959769f3 Update Chinese (Taiwan) translation
(cherry picked from commit 6547bc6137ecadb6f35cb468179612822bf1a3fc)
2020-09-17 13:59:12 +00:00
Juliano de Souza Camargo 5d087b0629 Update Portuguese translation
(cherry picked from commit e1bd1a4c4056394bdd0573284304e52accec5981)
2020-09-16 17:54:15 +00:00
Evangelos Ribeiro Tzaras ac46671334 window: Switch to HdyHeaderBar
Change the headerbar to HdyHeaderBar
2020-09-16 15:24:46 +00:00
Evangelos Ribeiro Tzaras 402ad34f42 window: Inherit from HdyApplicationWindow
This commit makes the toplevel GcalWindow inherit from
HdyApplicationWindow instead of GtkApplicationWindow.
2020-09-16 15:24:46 +00:00
Evangelos Ribeiro Tzaras 8be361b6ce project: Switch to libhandy-1
This commit updates the dependencies for libhandy to the tagged 1.0
release and changes the code to accomodate the changes from
libhandy-0 to libhandy-1.

Notable changes:
edit-dialog: HdyDialog has been dropped in [1]
alarm-row: action child type in HdyActionRow has been removed.

[1] https://gitlab.gnome.org/GNOME/libhandy/-/merge_requests/434
2020-09-16 15:24:46 +00:00
Evangelos Ribeiro Tzaras 2d5b1aa9d1 project: Cleanup code for unused views
Got rid of the unused views in the GcalWindowView enum
and associated code in gcal-window.
2020-09-16 15:24:46 +00:00
Georges Basile Stavracas Neto 28be1e858d build: Use meson summary instead of hardocded string 2020-09-16 10:28:33 -03:00
Georges Basile Stavracas Neto 5d858f1905 40.alpha 2020-09-16 10:28:32 -03:00
Stephan Woidowski f01add78da Update German translation
(cherry picked from commit a213cf4336e4abe30bd40c911c87dc6f85e12807)
2020-09-16 04:48:10 +00:00
Rūdolfs Mazurs 38c43e93a1 Update Latvian translation
(cherry picked from commit c242d23805b72dd80f14f43c133dad3ef66e7b44)
2020-09-15 18:12:07 +00:00
Dušan Kazik 8bc34da8d3 Update Slovak translation
(cherry picked from commit 98a1c92984fb89024c71e2c6b2ad2725fe3fd1e1)
2020-09-15 16:20:58 +00:00
Marek Černocký d473f9927d Updated Czech translation 2020-09-15 07:25:03 +02:00
Jordi Mas 635af58287 Update Catalan translation 2020-09-14 21:56:41 +02:00
Goran Vidović e897062474 Update Croatian translation
(cherry picked from commit 0b168d7b4f63746385fea6d6cbb428a657991c1e)
2020-09-13 18:22:05 +00:00
Jiri Grönroos 052f7a03f3 Update Finnish translation
(cherry picked from commit 95f87811076294e74f4078bf7661eae2cb31e700)
2020-09-13 18:19:48 +00:00
Aurimas Černius 5dad89f45e Updated Lithuanian translation 2020-09-13 20:02:28 +03:00
Milo Casagrande 8e97d865c8 Update Italian translation
(cherry picked from commit 284ea04078b11a101c7511159b64d7ea95f053ad)
2020-09-13 12:31:27 +00:00
Kukuh Syafaat b8d37769b7 Update Indonesian translation
(cherry picked from commit 315b44602310b94a8f18427ba6a8ab01f8f86f09)
2020-09-13 08:06:17 +00:00
Марко Костић 130de5ff4e Update Serbian translation
(cherry picked from commit 8d934d0f7dc29a22b0be60a17d918a12761fd0c0)
2020-09-13 07:35:59 +00:00
Henrique Machado Campos 689b197966 Update Brazilian Portuguese translation
(cherry picked from commit a7bb9c4ade7a422e8b0fbd76d2adbd7cc851b28b)
2020-09-13 06:35:52 +00:00
Efstathios Iosifidis 18734ae4ab Update Greek translation
(cherry picked from commit 2e4fb30e4f3212579e0745007c6ecc6982c0db48)
2020-09-12 20:50:03 +00:00
Balázs Úr aad87ad0a8 Update Hungarian translation
(cherry picked from commit f3f4b4871fe419e9a51e409ec6eb7807c4d789f3)
2020-09-12 19:49:02 +00:00
Anders Jonsson e82a7d6e19 Update Swedish translation
(cherry picked from commit 285f2f87f078fd5919130f4cbbede7e1b29557d9)
2020-09-12 19:35:47 +00:00
Rūdolfs Mazurs 708cf96038 Update Latvian translation 2020-09-12 16:07:25 +00:00
Emin Tufan Çetin 0532feb9e6 Update Turkish translation 2020-09-12 16:04:53 +00:00
Piotr Drąg 718b9f2f12 Update Polish translation 2020-09-12 17:55:35 +02:00
Baurzhan Muftakhidinov 342721306f Update Kazakh translation 2020-09-12 15:55:04 +00:00
Yuri Chornoivan 1c1e809c58 Update Ukrainian translation 2020-09-12 15:53:03 +00:00
Georges Basile Stavracas Neto dc06fa92e2 3.38.0 2020-09-12 12:49:29 -03:00
Georges Basile Stavracas Neto a202818c54 Update screenshots 2020-09-12 12:47:23 -03:00
Juliano Camargo 34d6cb44dc Update Portuguese translation 2020-09-12 11:45:07 +00:00
Jiri Grönroos 1a4c5ec36d Update Finnish translation 2020-09-09 14:44:33 +00:00
Danial Behzadi 652ac393e2 Update Persian translation 2020-09-09 12:15:06 +00:00
Juliano Camargo 19f2808c4a Update Portuguese translation 2020-09-08 20:00:56 +00:00
Georges Basile Stavracas Neto 5f381b01f2 3.37.92 2020-09-05 13:51:27 -03:00
Jordi Mas 880d1a0b89 Update Catalan translation 2020-08-28 07:47:30 +02:00
Matej Urbančič e44b9731e1 Updated Slovenian translation 2020-08-21 18:40:22 +02:00
Yuri Edward 78cb11c64d calendar-monitor: Turn "completed" signal into a boolean property
And make GcalTimeline decrease the completed calendars counter when
any GcalCalendarMonitor goes from complete to incomplete.

Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/625
2020-08-17 15:59:33 -03:00
Jordan Petridis 41a3e0a853 flatpak: avoid explicitly setting cflags
The runtimes provide a good set of default flags
at /usr/etc/flatpak-builder/defaults.json
which gets automatically exported
2020-08-03 20:38:20 +00:00
Jordan Petridis 19786e80da ci: flatpak: remove meson-args variable
We no longer need to manually keep it in sync with the ci.
2020-08-03 20:34:18 +00:00
Jordan Petridis 36a22b930a ci: remove deprecated jobs
The functionality of these jobs exists in the normal
build job now and they are no longer needed.

citemplates@544836ee
2020-08-02 16:07:57 +00:00
அருள்ராஜன் அ லை 87fbdb6423 Add Tamil translation 2020-07-31 12:48:34 +00:00