Georges Basile Stavracas Neto
750c62d4f2
core/context: Use Settings portal for 24h setting
...
Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1105
2023-09-23 02:54:09 -03:00
Georges Basile Stavracas Neto
b26f33ea10
utils: Remove 24h utility function
...
The last user of this function is gone now.
2023-09-23 02:39:39 -03:00
Georges Basile Stavracas Neto
38108ffa7a
event-widget: Fetch 24h setting from context
...
Instead of using the auxiliary function.
2023-09-23 02:39:07 -03:00
Georges Basile Stavracas Neto
c8543aa822
views/week/header: Use en dash
...
Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1107
2023-09-22 11:47:47 -03:00
Georges Basile Stavracas Neto
a7f798a815
views/month: Use en dash
...
Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1107
2023-09-22 11:45:47 -03:00
Rūdolfs Mazurs
b0fb477b08
Update Latvian translation
2023-09-18 13:40:19 +00:00
Fabio Tomat
649a846dc9
Update Friulian translation
2023-09-18 12:09:58 +00:00
Georges Basile Stavracas Neto
a25cd4fec7
Post-release version bump
2023-09-18 09:07:26 -03:00
Georges Basile Stavracas Neto
619d95c336
45.0
2023-09-18 09:04:06 -03:00
Georges Basile Stavracas Neto
77c908b394
event-widget: Properly unparent preview popover
...
GcalEventWidget currently doesn't track the preview popover, and
that can easily crash Calendar upon destruction.
Track that, and unparent on dispose.
Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/986
2023-09-14 12:09:11 -03:00
Georges Basile Stavracas Neto
8d79fe2ffd
views/month: Demote assertion to regular check
...
We can have a NULL selection start, when starting the drag on the
header section.
2023-09-13 18:34:22 -03:00
Georges Basile Stavracas Neto
439b46af89
core/calendar-monitor: Remove g_autoptr from a variable
...
g_hash_table_lookup() is not transfer-full, so this g_autoptr + the
g_hash_table_remove() call end up double-unreffing the event, which
causes a crash.
Remove g_autoptr from the variable.
2023-09-13 17:51:34 -03:00
Georges Basile Stavracas Neto
dd61f8ef6f
views/month/row: Adjust for exclusive end date
...
Subtract a second from the end date so we can properly compare dates.
Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1098
2023-09-13 14:25:45 -03:00
Georges Basile Stavracas Neto
07c5b6280a
core/calendar-monitor: Transfer event ownership properly
...
g_steal_pointer() is not enough, since the event is not declared
with g_autoptr.
Use g_object_ref().
Fixes: f7ee9279ad
Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1097
2023-09-13 14:18:36 -03:00
Georges Basile Stavracas Neto
a1810433ed
core/timeline: Don't excise events from queue
...
When removing the last subscriber (something that can happen when
closing the main window), GcalTimeline clears the event queue. But
that leaves us in an inconsistent state, as we don't process any of
the potentially removed events.
Don't do that.
Related: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1087
2023-09-13 09:17:12 -03:00
Georges Basile Stavracas Neto
f1767037ac
views/month: Clear selection after showing overflow
...
This should prevent selection after clicking any overflow button.
2023-09-13 09:17:12 -03:00
Matej Urbančič
94ba080d38
Update Slovenian translation
2023-09-11 13:52:03 +00:00
Jordi Mas
1ef77cee46
Update Catalan translation
2023-09-11 09:06:07 +02:00
Georges Basile Stavracas Neto
ad34aa40fc
views/month: Add header above week rows
...
Otherwise GTK4 will pick the rows, even when they're clipped.
Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1095
2023-09-09 20:14:39 -03:00
Seong-ho Cho
c265edeb05
Update Korean translation
2023-09-08 08:17:15 +00:00
Anders Jonsson
918163bb02
Update Swedish translation
2023-09-05 21:59:29 +00:00
Balázs Úr
fe02e6dfd6
Update Hungarian translation
2023-09-05 17:14:37 +00:00
Sam Hewitt
b7e04c561e
style: Fix papercuts in the calendar cell style
2023-09-05 13:07:25 -02:30
Fran Dieguez
e2373130fa
Update Galician translation
2023-09-03 19:34:04 +00:00
Georges Basile Stavracas Neto
9ace504ec4
Post-release version bump
2023-09-02 10:35:15 -03:00
Georges Basile Stavracas Neto
42df20b904
45.rc
2023-09-02 10:33:32 -03:00
Georges Basile Stavracas Neto
5503e5ca50
views/month: Handle reduced animations setting
...
Move rows slightly faster in that case.
Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1080
2023-09-02 10:28:39 -03:00
Georges Basile Stavracas Neto
20ad7f3676
views/month: Reset offset when animation is done
2023-09-02 10:26:41 -03:00
Georges Basile Stavracas Neto
b0813fb605
month-view-row: Clamp last cell to [first cell, 6]
...
This is not ideal but it's what we've got for now.
Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1083
2023-09-02 10:26:41 -03:00
Alan Mortensen
7ae5765788
Update Danish translation
2023-09-01 18:19:00 +00:00
Daniel Rusek
6769b7a719
Update Czech translation
2023-09-01 09:00:33 +00:00
Aurimas Černius
a0073fd241
Update Lithuanian translation
2023-08-31 19:20:18 +00:00
Fran Dieguez
8a2c51e141
Update Galician translation
2023-08-29 21:49:02 +00:00
Nathan Follens
086d175a4a
Update Dutch translation
2023-08-27 18:02:49 +00:00
Georges Basile Stavracas Neto
e3a350126b
gui/month-cell: Accept drops from other months
...
We support that now fairly easily, let's enable it.
Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1077
2023-08-25 18:07:04 -03:00
Georges Basile Stavracas Neto
f6c4fe108d
core/calendar-monitor: Join view thread in dispose
...
Joining the calendar view thread in finalize is too late; dispose
is an earlier phase, and recoverable.
Do that.
Closes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1085
2023-08-25 17:18:16 -03:00
Georges Basile Stavracas Neto
d8742df706
core/calendar-monitor: Remove unnecessary g_main_loop_quit()
2023-08-23 11:25:59 -03:00
Georges Basile Stavracas Neto
ef1f154c7a
core/shell-search-provider: Check for pending search
...
Now that GcalTimeline properly notifies about the complete state,
it uncovered an issue where GcalShellSearchProvider was dereferencing
a NULL pointer.
Protect against that.
2023-08-23 11:19:10 -03:00
Georges Basile Stavracas Neto
b32353e0ed
core/timeline: Update completed when adding or removing
...
We need to do that, so we can keep properly keep the complete
property up-to-date.
2023-08-23 11:19:10 -03:00
Georges Basile Stavracas Neto
0eb3ebb1fa
core/timeline: Track complete state differently
...
Don't try and track the number of completed calendars; instead,
recalculate the completed state from scratch every time. This
is not a performance concern, as we're dealing with at most some
hundreds of calendars.
2023-08-23 11:19:10 -03:00
Georges Basile Stavracas Neto
f16b0a1563
core/calendar-monitor: Assert more startup conditions
...
The calendar view thread can start spinning its own mainloop
before g_thread_new() returns, and in that case we have a NULL
thread.
Check that either the GThread is what we expect it to be, OR,
the thread is NULL and there are no messages in the queue.
2023-08-23 10:17:01 -03:00
Georges Basile Stavracas Neto
8403052d88
core/calendar-monitor: Initialize and clear mutex
...
An oversight from previous commits
2023-08-23 10:11:13 -03:00
Georges Basile Stavracas Neto
373da242d0
core/calendar: Ensure notify happens in main thread
...
The notify signals of ESourceSelectable seem to come from the
ESourceRegistry thread, and this has the potential to derail
the execution of Calendar. This might be true for all signals
we connect to.
Make sure to always emit notify signals on the main thread.
2023-08-23 09:33:01 -03:00
Georges Basile Stavracas Neto
42de771c24
core/calendar-monitor: Join thread before NULLifying it
...
This allows the threading macros to compare against the correct
value.
2023-08-23 09:33:01 -03:00
Georges Basile Stavracas Neto
6f45dcc26f
core/calendar: Notify about the right property
...
When we change colors, notify about colors, not the name.
2023-08-22 17:28:13 -03:00
Georges Basile Stavracas Neto
9e341d87e4
core/monitor: Assert we're in the right thread
...
Right now everything works as expected, but this should catch cases
where we're running functions on the wrong thread.
2023-08-22 17:25:56 -03:00
Georges Basile Stavracas Neto
df66e484a7
core: Add global threading utility
...
For now, we only store what's the main thread of the program.
2023-08-22 17:25:56 -03:00
Amn Alam
4e054f276b
Update Punjabi translation
2023-08-21 00:15:10 +00:00
Baurzhan Muftakhidinov
73fa6d2260
Update Kazakh translation
2023-08-19 16:18:54 +00:00
Georges Basile Stavracas Neto
9e3a727eb7
Post-release version bump
2023-08-18 12:53:01 -03:00