Commit graph

6368 commits

Author SHA1 Message Date
Adrien Plazas
7d4a61d431 main-toolbar: Add add_to_size_groups()
This will be used to sync requests of the panes.
2020-10-10 10:41:49 +02:00
Adrien Plazas
94ab7e5ac6 main-toolbar: Split the folder header
Split it into a folder header and a conversations header. This is needed
to properly split the 3 panes.

Fixes https://gitlab.gnome.org/GNOME/geary/issues/442.
2020-10-10 10:41:49 +02:00
Adrien Plazas
850efb7238 application-main-window: Move the conversations searchbar
Move it at above the conversations but not above the folders. This is
needed to properly split the 3 panes.
2020-10-10 10:41:49 +02:00
Adrien Plazas
fb311e1c82 Drop the 2-panes mode
This won't be needed to save horizontal space when using HdyLeaflet, and
it would make porting to it harder.
2020-10-10 10:41:49 +02:00
Adrien Plazas
a1f74d24ff Drop saving the paned width
This is needed to replace GtkPaned by HdyLeaflet. This breaks syncing
the size of the headerbar with the rest of the window, it will be fixed
in a later commit.
2020-10-10 10:41:49 +02:00
Efstathios Iosifidis
da9ed07512 Update Greek translation
(cherry picked from commit 2cb7aa0394c351338fbdd110ec381479e24107ea)
2020-10-07 08:09:20 +00:00
Jordi Mas
d551275345 Fix accute in Catalan translation 2020-10-07 08:15:19 +02:00
Michael Gratton
5819012d90 Revert "Merge branch 'mjog/ci-3-38' into 'mainline'"
This reverts merge request !598
2020-10-04 10:41:40 +00:00
Kukuh Syafaat
d2a0694866 Update Indonesian translation 2020-10-04 08:34:11 +00:00
Michael Gratton
1983bbfaf7 Merge branch 'mjog/ci-3-38' into 'mainline'
org.gnome.Geary.yaml: Update branches to 3.38

See merge request GNOME/geary!598
2020-10-04 08:03:46 +00:00
Michael Gratton
44b1724606 build: Update appropriate branches to stable and CI image 2020-10-04 18:24:18 +11:00
Michael Gratton
03f05c6448 Merge branch 'mjog/986-namespace-assert' into 'mainline'
Disconnect from IMAP client sessions when logging out

Closes #986

See merge request GNOME/geary!586
2020-10-01 23:09:53 +00:00
Michael Gratton
d3badedad7 Merge branch 'mjog/1004-missing-labels' into 'mainline'
client: Fix not all folders being displayed in additional main windows

Closes #1004

See merge request GNOME/geary!594
2020-09-29 22:35:03 +00:00
Yosef Or Boczko
151f5ee66c Update Hebrew translation
(cherry picked from commit 710dd09e1bfbc8ce3fa7ec848cecc276c7e53dbe)
2020-09-29 14:05:53 +00:00
Michael Gratton
bfbc7f5d70 client: Fix not all folders being displayed in additional main windows
Application.MainWindow: Sort folders already available in an account
by path so that FolderListTree is able to add them all successfully.

Application.FolderContext: Implement Gee.Comparable so instances can
be sorted.

Fixes #1004
2020-09-29 23:03:31 +10:00
Michael Gratton
7dd098fc16 Merge branch 'mjog/989-flatpak-font-workaround' into 'mainline'
FormattedConversationData: Fix font settings being ignored under Flatpak

See merge request GNOME/geary!592
2020-09-28 13:01:06 +00:00
Michael Gratton
836a9ad384 FormattedConversationData: Fix font settings being ignored under Flatpak
Get the interface font from Gtk.Settings instead of GLib.Settings since
the latter can't actually access desktop settings under Flatpak.

Partial fix for #989

See also GNOME/glib#2213
2020-09-28 22:31:46 +10:00
Michael Gratton
af74b4577f Merge branch 'mjog/985-client-api-buld-failure' into 'mainline'
build: Fix build failure due to missing client API

Closes #985

See merge request GNOME/geary!590
2020-09-27 23:19:10 +00:00
Michael Gratton
b5abd3f966 build: Fix build failure due to missing client API
Don't use client lib vala ags when building the web process extension,
since that will cause it to also write a VAPI with the same name as
the client lib, causing the build to fail if the web process side wins
that race.

Fixes #985
2020-09-28 08:53:35 +10:00
Michael Gratton
d89ee32629 Merge branch 'mjog/composer-fixes' into 'mainline'
Misc composer fixes

See merge request GNOME/geary!587
2020-09-27 13:37:03 +00:00
Michael Gratton
70186163e8 Composer.Widget: Fix critical when immediately detaching a new composer
New composers have no associated GLib Application instance, so when the
main window is already showing a composer and another is opened, the
new composer has no application to pass its window.

Fix by requiring `Composer.detach` be passed an application instance
and find an appropriate instance at each call site.
2020-09-27 22:46:40 +10:00
Michael Gratton
bd85c4f1a8 Composer.Widget: Fix criticals when "mailto:" has empty body 2020-09-27 19:57:52 +10:00
Michael Gratton
41be8693d4 Geary.Imap.ClientSession: Treat logout as disconnect
Convert `get_protocol_state` to an automatic property, so that rather
than requiring explcit signals for lifecycle events, a GObject notify
signal can be used instead.

Convert disconnect signal to a property so it can be accessed if needed.

Convert code listening to the disconnect signal to listen to notify
signals for `protocol_state` instead, and hence also treat the session
as disconnected when a logout is in progress.

Fixes #986
2020-09-27 17:38:10 +10:00
Michael Gratton
ed4ba33127 Geary.State.Machine: Support GObject notify signal for state changes
Modernise the API a bit by using properties instead of explicit
getters/setters, an hence support GObject notify signals when the
state property changes.
2020-09-27 16:18:26 +10:00
Michael Gratton
ac425f57b1 Geary.Imap.SessionObject: Rename claim_session to get_session
Don't over-sell what it does.
2020-09-27 16:18:26 +10:00
Michael Gratton
b209f84e58 Geary.Imap.FolderSession: Ensure client session is selected when accessed
Ensure the underlying ClientSession object is in the SELECTED state
for the correct mailbox when obtaining it.
2020-09-27 16:18:26 +10:00
Michael Gratton
1c951f8908 Geary.Imap.SessionObject: Ensure the session is connected when accessed
Ensure the client session is connected as well as non-null when being
accessed, so that if being logged out it is also treated as being
disconnected.
2020-09-27 16:18:26 +10:00
Michael Gratton
2093aa3229 Geary.Imap.Session: Avoid critical when client session logged out
If the client session is being logging out but some other tasks is
still attempting to use it, getting a mailbox will assume at least
one personal namespace exists, but it will have been cleared.

Add a check and throw an exception if none are present, so at least
it is handled in a well defined way.

Fixes #986
2020-09-27 16:18:26 +10:00
Michael Gratton
13f5602446 Merge branch 'mjog/991-gcr-critical' into 'mainline'
Fix GCR critical

Closes #991

See merge request GNOME/geary!583
2020-09-24 22:59:08 +00:00
Michael Gratton
82f0ca8d0f Merge branch 'mjog/db-result-timing' into 'mainline'
Database contention and locking redux

See merge request GNOME/geary!578
2020-09-24 22:54:30 +00:00
Michael Gratton
0475d29f84 Application.CertificateManager: Warn when GCR not able to access stores
At least let people know somehow their GCR setup is lacking.
2020-09-25 08:27:36 +10:00
Michael Gratton
7f7c55e79a Application.CertificateManager: Fix critical when no GCR trust stores
Ensure GCR store not null before accessing it.
2020-09-25 08:25:34 +10:00
Michael Gratton
880705f2ab Update files for 40 development 2020-09-25 08:23:15 +10:00
Daniel Mustieles
571c10add8 Updated Spanish translation 2020-09-23 09:26:43 +02:00
Dušan Kazik
5942e30377 Update Slovak translation
(cherry picked from commit 2028c9dea3f1d8f6c5dcfdd44f5f1990121e0983)
2020-09-21 11:52:27 +00:00
Dušan Kazik
e56e2a8e54 Update Slovak translation 2020-09-16 11:28:54 +00:00
Goran Vidović
d26894046b Update Croatian translation 2020-09-15 23:26:19 +00:00
Goran Vidović
3e176af1e1 Update Croatian translation 2020-09-15 23:17:28 +00:00
Fabio Tomat
e957f0f8a7 Update Friulian translation 2020-09-15 06:56:54 +00:00
Fabio Tomat
acabdc9e73 Update Friulian translation 2020-09-15 05:52:24 +00:00
Fabio Tomat
4a4e6a6992 Update Friulian translation 2020-09-15 05:20:06 +00:00
Fabio Tomat
56b77cf0d7 Update Friulian translation 2020-09-14 19:32:40 +00:00
Michael Gratton
26f3878a7a Update files for 3.38.0.1 2020-09-14 23:36:32 +10:00
Michael Gratton
a67d55bff6 Merge branch 'mjog/forgotten-sql-files' into 'mainline'
sql: Remember to install new SQL migration files

See merge request GNOME/geary!581
2020-09-13 14:22:45 +00:00
Michael Gratton
1e2ae9410f sql: Remember to install new SQL migration files 2020-09-13 23:59:00 +10:00
Jordi Mas
b72a8491c6 Update Catalan translation 2020-09-13 09:34:47 +02:00
Michael Gratton
22b642edef Update files for 3.38 2020-09-13 14:21:30 +10:00
Michael Gratton
3d8b86dd4e Geary.ImapDB.Folder: Drop create/merge batch size down
We've had reports on Matrix that existing batch transactions in
`create_or_merge_email_async` are taking up to 30s to run, which is
getting uncomfortably close to the 60s timeout.

Drop the batch size down from 25 to 10 to reduce the chance that this
will eventually fail with a "database is locked" error.

See #921 for context.
2020-09-12 12:02:49 +10:00
Michael Gratton
915a38faca Geary.ImapDb.Account: Slice up search table population work better
Although populating the search table had been broken up into batches
of 50 email, it was still search for and loading every single message
id in both the MessageTable and MessageSearchTable, doing a manual
join, and then updating the batch, for *each* batch, and in a RW
transaction.

Break this up so that the ids are loaded and joined only once, the
queries happens in a RO transaction, the manual join happens in a side
thread, leaving each RW transaction only having to load the messages
and update the search index for up to 50 messages.
2020-09-11 00:00:02 +10:00
Michael Gratton
0f60c285df Geary.Db: Update SQL logging
Ensure all code paths that execute SQL are logging it if enabled, and
clean up the log formatting.

Add new `enable_result_logging` static property to control result
logging separately from SQL logging, so we can get SQL logged without
having to see email. Clean up result formatting, and keep track of the
current result row number and log that as context.
2020-09-10 23:59:05 +10:00