Commit Graph
2319 Commits
Author SHA1 Message Date
Björn Daase ad7ff65a4d event-editor/schedule-section: Fix localization mix
The gcal_util_translate_time_string function is a plain copy of
gnome-shells shell_util_translate_time_string solving the same problem.

Fixes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/581
2022-02-12 17:43:49 +01:00
Björn Daase 02343e6b37 event-editor/schedule-section: Simply switch-case statement 2022-02-12 17:37:11 +01:00
Georges Basile Stavracas Neto 69d320f49c event-editor/dialog: Improve calendar selection menu 2022-02-12 13:24:57 -03:00
Georges Basile Stavracas Neto 47a72f8156 event-editor-dialog: Port to new callback-based ask API 2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto ee5acbd493 Reimplement event drag n' drop
Reintroduce the code using GTK4 tooling for in-process DnD.
This is looking much better!
2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto ad0a97d6ac Rework calendar popover to be a button
This allows more precise control of the style and the contents
of the popover.
2022-02-12 13:08:50 -03:00
Sam Hewitt bc0aeaaf70 css: Adjust line strength in views 2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto fb504db31f util: Drop unused function 2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto eb63f10651 help-overlay: Port to GTK4 2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto 5ebab9f6d5 calendar-popover: Port to GTK4 2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto c91f03feb1 weather-settings: Port to GTK4 2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto b8cbb1653d event-popover: Port to GTK4 2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto fd023e0a28 year-view: Port to GTK4 2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto c31d2c5821 css: Adjust slanted events CSS 2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto 1cbce60c4a month-view: Port to GTK4 2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto b31b16da17 week-view: Port to GTK4 2022-02-12 13:08:50 -03:00
Georges Basile Stavracas Neto 132d4435f6 event-widget: Port to GTK4 2022-02-11 09:18:42 -03:00
Georges Basile Stavracas Neto fcfb387f5a importer: Port to GTK4 2022-02-11 09:18:42 -03:00
Georges Basile Stavracas Neto 74c410bd85 Port search subsystem to GTK4 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto bd2ac18c19 quick-add-popover: Port to GTK4 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto ffadcb4f4e meeting-row: Port to GTK4 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto e390706e44 event-editor/time-selector: Port to GTK4 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto b5dc363a3b event-editor/summary: Port to GTK4 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto 333b8ecc2a event-editor/schedule: Port to GTK4 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto c0365a1681 event-editor/reminders: Port to GTK4 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto d32be45273 event-editor/notes-section: Port to GTK4 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto 0f7a0db138 event-editor/dialog: Port to GTK4 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto 2139f40e67 project: Adjust color rendering to use GdkPaintable 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto 760d74686d event-editor/date-selector: Port to GTK4
Needed some popover management, but otherwise uneventful.
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto b1781146b7 calendar-management/page: Port to GTK4
Just switch to include adwaita.h
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto 27659cf4fb calendar-management/new-calendar-page: Port to GTK4 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto 5ee03040c5 calendar-manager/edit-calendar-page: Port to GTK4 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto 41ba168250 calendar-management/calendars-page: Port to GTK4 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto 2b834b27ff calendar-management-dialog: Port to GTK4
Subclass AdwWindow. Adjust the API to return GtkHeaderBar
instead of HdyHeaderBar.
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto e3196644bb window: Port to GTK4
Subclass AdwApplicationWindow.
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto 4506fb7477 event-editor/multi-choice: Port to GTK4 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto c6fab7675b application: Port to GTK4
Subclass AdwApplication.
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto 9b56010b12 event-editor/date-chooser: Port to GTK4 2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto e138a35a6b event-editor/alarm-row: Port to GTK4
Subclass AdwActionRow.
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto 97456e3428 date-chooser-day: Port to GTK4
Subclass AdwBin. Remove unnecessary GtkWidget overrides.
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto 2809ed3abb Depend on GTK4 and libadwaita
This breaks the build. Next commits will port each widget to
GTK4.
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto 2b7e2cb574 build: Temporarily remove libedataserverui dep
Since we'll be switching to GTK4, we can't depend on this
library which links to GTK3. There's a GTK4 port underway,
we'll reenable when it lands
2022-02-11 09:18:38 -03:00
Georges Basile Stavracas Neto 7efd6facc9 Port to GWeather4
In preparation for the GTK4 port. This is just a cheap port,
I'll implement proper entry completion after porting to GTK4.
2022-02-11 09:18:38 -03:00
Michael Webster 02cd9b053e application: Fix tm -> GDateTime month conversion
The month argument for g_date_time_new() is 1-based,
while the tm struct is 0-based.

Follow-up to:
a0aa36b6d2

ref:
https://pubs.opengroup.org/onlinepubs/7908799/xsh/time.h.html
2021-12-15 14:22:00 +00:00
Alexander Mikhaylenko 83249b0d84 core: Remove follow-night-light
The system will do the scheduling instead.
2021-12-11 20:40:00 +05:00
Alexander Mikhaylenko 7144300a49 application: Support dark style preference
Depend on libhandy 1.5.0.
2021-12-11 17:25:49 +05:00
Michael Webster a0aa36b6d2 application: Fix tm -> GDateTime year conversion
g_date_time_new() expects an actual year, while the tm struct
only provides the number of years since 1900.

ref:
https://pubs.opengroup.org/onlinepubs/7908799/xsh/time.h.html
2021-12-10 14:20:13 -05:00
Georges Basile Stavracas Neto 2697dac460 import-dialog: Also import timezones
Some calendars provide custom timezones, and set events to
them. We need to account for that when importing calendars.

Original patch proposed by Milan Crha.

Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/444
2021-12-08 17:18:16 -03:00
Georges Basile Stavracas Neto 0751c2e93c event-editor/schedule-section: Show times in local timezone
Preserve the original timezone when editing, but always display
the start and end times in local timezone.
2021-12-07 13:32:16 -03:00
Georges Basile Stavracas Neto fc3ad22169 event-popover: Display times in local timezone
Convert the start and end datetimes to the local timezone
before displaying them.
2021-12-07 13:32:16 -03:00