Commit Graph
4786 Commits
Author SHA1 Message Date
Jean-François Fortin Tam 006437bf61 Avoid duplication when adding online calendars
When subscribing to one or multiple online Webcal or CalDAV calendars,
do not unexpectedly create an extra local calendar.

While this doesn't allow customizing names & colors while subscribing,
users can still easily set those just after adding the subscriptions,
as they are then returned to the "Calendars" page of "Manage Calendars".

Punting this to a separate step might not seem like the "perfect" flow,
but it works well enough and fixes the buggy UX that we currently had.

Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/566
Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/978
2024-07-09 16:44:01 -04:00
Georges Basile Stavracas Neto 75a42c7d83 event-widget: Truncate the correct string
I shouldn't write code in a hurry
2024-07-09 17:40:01 -03:00
Georges Basile Stavracas Neto 06bf58d5fa event-widget: Don't modify translated strings 2024-07-09 17:35:48 -03:00
Georges Basile Stavracas Neto ae03627f0c utils: Port to AdwAlertDialog 2024-07-09 17:09:29 -03:00
Daniel Garcia Moreno c7875f03ff timeline: Handle multiday events in calculate_changed_events
This patch do not sends ADD_EVENT for events that are multiday and are
part of the old_range when calling calculate_changed_events. This will
prevent multiday duplicate events to appear in the agenda widget when
using the week view.

If the event is a multiday and it was in the previous range, it won't
send the REMOVE_EVENT so multiday events won't dissapear when it's still
relevant.

See https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/898#note_1602391
2024-07-09 19:59:42 +00:00
Daniel Garcia Moreno d7bbda4eaa views/agenda: Do not create new header for all-day
Fix https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/898
Fix https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/968
2024-07-09 19:59:42 +00:00
Dimitrios Christidis 5dbf0c24bd event-editor: Introduce reminder at event start time 2024-07-09 19:54:03 +00:00
Abdullahi Usman d8e2fd6d81 reminders-section: make alarm sound changes persistent
When the alarm sound changes, the change is not updated because
gcal-manager does not see the changes.

We now update the components and make more comparisons so that
it can be seen by gcal-manager
2024-07-09 19:47:13 +00:00
Abdullahi Usman 420a126ddb reminders-section: fix reminder alarm toggle button states
Alarm toggle state are in three stages because we do not update both
icon and active when pressed.

we now update the icons to match their states.
2024-07-09 19:47:13 +00:00
Vitaly Dyachkov 2dab78b556 Make event title selectable
Currenlty, there is no easy way to copy an event title.
2024-07-09 19:31:56 +00:00
Otávio Silva 7cebd2bf95 event-widget: Use "On..." in tooltip when location is a meeting service
In the tooltip, the event location always has the preposition "At ...".
This changes it to "On ..." when the location is a known meeting
service.
2024-07-09 16:26:29 -03:00
Otávio Silva f3359d0246 event-widget: Display meeting service name in event tooltip
In case the location is an URL, it is irrelevant to display the full
link,
as it is not clickable. So, this shows the meeting service provider if
it
is known or reduces the text in the tooltip, preventing it from covering
other information in the calendar.

Closes: #1232
2024-07-09 16:26:00 -03:00
Otávio Silva 9433db55a2 utils: Move get_service_name_from_url to utils
This function can be useful in contexts other than the creation of
the meeting row.
2024-07-09 16:14:47 -03:00
Brage Fuglseth 34d0c7d4af readme: Update Flathub banner 2024-07-09 19:07:12 +00:00
Georges Basile Stavracas Neto 5a0aef6def tests: Disable a pair of tests
They're failing CI, I don't know why, and I'm afraid it's not really
related to GNOME Calendar itself. So just disable them for now.
2024-07-09 19:04:46 +00:00
Georges Basile Stavracas Neto b1a8720384 build: Properly sort tests alphabetically 2024-07-09 19:04:46 +00:00
Artur S0 9695d6e1ef Update Russian translation 2024-07-03 12:49:59 +00:00
Martin 02116592e0 Update Slovenian translation 2024-07-02 21:09:13 +00:00
Scrambled 777 d2316eaa60 Update Hindi translation 2024-07-02 18:22:24 +00:00
Sabri Ünal 2949deeaca i18n: Add context for Add Calendar buttons
Due to some languages using the "nplurals=1; plural=0" plural form,
and the string already in use in src/gui/calendar-management/gcal-new-calendar-page.c
with g_dngettext, add context to the other "Add Calendar" strings to fix the problem.

AFAIK, other locales (confirmed: be_BY, fa_IR, id_ID, kk_KZ, ko_KR, my_MM, zh_CN)
are also affected by this issue.
2024-07-02 15:45:14 +00:00
Jamie Gravendeel 294d8ce90a calendars-page: Remove suggested styling 2024-07-02 15:44:27 +00:00
José Guilherme fb86cede2f about: enclose version number string between backticks
When the text is pasted on gitlab, it recognizes the version SHA and
places a hyperlink to the commit, which might facilitate unintended
references to be created.

By enclosing the string between backticks, gitlab does not recognize it.

Closes #1246
2024-07-02 15:43:30 +00:00
Balázs Úr cf8768f076 Update Hungarian translation 2024-06-28 13:24:54 +00:00
Georges Basile Stavracas Neto de5f663373 style: Use CSS variables for event widget styling
This vastly simplifies the code!
2024-06-11 17:22:35 -03:00
Georges Basile Stavracas Neto 00919f6305 build: Depend on GTK4 >= 4.15.2
We'll start using CSS variables
2024-06-11 17:21:57 -03:00
pbone64 473dd7a0e6 mini-calendar: Increase non-workday text contrast.
Fixes #1244
2024-06-10 20:16:40 -05:00
Philipp S d518f20045 calendar-management-dialog: Ensure minimum dialog height 2024-05-28 14:03:49 +00:00
Yosef Or Boczko 69237502a5 Update Hebrew translation 2024-05-28 08:53:15 +00:00
Sam Hewitt f687aa5b3b datechooser: Update day text styles for readability
- sync the visuals with that of the mini-calendar in the Shell
- make other month days more visible/have greater contrast
2024-05-21 11:22:17 -02:30
Philipp S 5695b718ff Update file gcal-event-widget.ui 2024-05-12 05:59:12 +00:00
Guntupalli Karunakar 16812d7ff3 Update Hindi translation 2024-05-07 16:51:25 +00:00
Martin 1bef83649b Update Slovenian translation 2024-05-07 07:51:55 +00:00
Sabri Ünal ee72033dae i18n: Fix missing appdata file
Update relocated metainfo file location in the POTFILES.in

A leftover from: 0c8e1834f7
2024-05-06 02:43:56 +03:00
Jamie Gravendeel 7d1fc2f92a calendars-page: Restore raised functionality 2024-05-02 22:05:48 +02:00
Georges Basile Stavracas Neto eced2151aa calendar-management/edit: Use external-link-symbolic icon
As per mockups.
2024-05-02 14:54:43 -03:00
Georges Basile Stavracas Neto 9add430c30 calendar-management/edit: Always show calendar location
As per mockups.

See https://gitlab.gnome.org/Teams/Design/app-mockups/-/issues/102
2024-05-02 14:54:43 -03:00
Jean-François Fortin Tam b547db1170 event-editor: Demystify the read-only padlock icon
Non-technical users may not realize why they can not edit some events
from read-only subscribed remote calendars.

A symbolic padlock icon does not suffice to make this obvious.
This tooltip makes the UI self-documenting, and improves accessibility.
2024-05-01 15:01:39 +00:00
Jean-François Fortin Tam f332b5a076 Delay search activation for better UX & perfs
A more realistic default delay avoids spamming the search backends.
Benefits of this approach:

* Improves overall performance, allows wider search timeline ranges;
* Reduces power consumption;
* Reduces or eliminates flickering in the GUI;
* Reduces the amount of trace logging noise by more than 15x.

Fixes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1170
2024-05-01 14:52:13 +00:00
Jean-François Fortin Tam d7f200fff8 search-button: Add debug statements
This makes it easier to troubleshoot what triggers and stops searches.
2024-05-01 14:52:13 +00:00
Georges Basile Stavracas Neto 41390a246e build: Bump minimum libadwaita version to 1.6.alpha 2024-05-01 11:10:23 -03:00
Jamie Gravendeel 967e8cf494 edit-calendar-page: Port remove to AdwButtonRow
Also puts the remove button in its own PreferencesGroup so that the row
can be showed separately from the rest of the list.
2024-05-01 14:06:21 +00:00
Alice Mikhaylenko 6a27049c93 event-editor-dialog: Port Delete Event button to AdwButtonRow 2024-05-01 13:47:16 +00:00
Alice Mikhaylenko a74e7179c1 reminders-section: Port Add Reminder row to AdwButtonRow 2024-05-01 13:47:16 +00:00
Alice Mikhaylenko eb8ee25f6a calendars-page: Port Add Calendar button to AdwButtonRow 2024-05-01 13:47:16 +00:00
Georges Basile Stavracas Neto 0228df3bc9 calendar-management/page: Remove unused vfuncs 2024-05-01 10:45:57 -03:00
Georges Basile Stavracas Neto 57ba8e2bf1 calendar-management: Rework page interface
Make GcalCalendarManagementPage require implementors to be
AdwNavigationPages
2024-05-01 10:44:16 -03:00
Aurélien Delory eaf5f55ac3 calendar-management/edit: Bind title to calendar name
Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1146
2024-05-01 10:30:30 -03:00
Hugo Carvalho 7eb9fe7f15 Update Portuguese translation 2024-04-28 18:24:50 +00:00
Efstathios Iosifidis fb889a0f99 Update Greek translation 2024-04-27 21:33:05 +00:00
Hari Rana 0c8e1834f7 about, appdata: Port to AdwAboutDialog.new_from_appdata
This removes a lot of duplicated code, as we can simply reuse the
appdata file. It will also allow us to add release notes without
needing to rewrite them. A simple update in the
`adw_about_dialog_new_from_appdata` method will take care of
displaying the release notes.

This also renames the appdata file from `appdata.xml` to
`metainfo.xml`, as `appdata.xml` is considered a legacy filename.
2024-04-26 12:56:14 +00:00