Commit graph

6468 commits

Author SHA1 Message Date
Julian Sparber
8aa5f291e8 folder-list: mordernize sidebar
This makes each row a better click target and improves spacing in
general. This move the expander arrow to the left and removes the
indentation for folders which makes it possible to define a much
smaller width for the sidebar.

Fixes: https://gitlab.gnome.org/GNOME/geary/-/issues/880,
       https://gitlab.gnome.org/GNOME/geary/-/issues/1029
2020-12-09 11:08:33 +01:00
Julian Sparber
e070607f58 folder-list: allow to toggle expaned on the entire row 2020-12-09 11:08:33 +01:00
Julian Sparber
a57a1d46d7 folder-list: Don't expand folder list automatically 2020-12-09 11:08:33 +01:00
Andika Triwidada
de81077da5 Update Indonesian translation
(cherry picked from commit 1b020263101f5593979839cb6f1d86981d669dc0)
2020-12-03 14:57:15 +00:00
Emin Tufan Çetin
e5d878125d Update Turkish translation 2020-11-28 23:56:11 +00:00
Аляксей
5d104b117c Update Belarusian translation 2020-11-28 14:30:42 +00:00
Jordi Mas
69bcdec9b2 Update Catalan translation 2020-11-22 09:42:51 +01:00
Enrico Nicoletto
adbf6bbf1b Update Brazilian Portuguese translation 2020-11-20 21:02:59 +00:00
Anders Jonsson
ecd9e2e982 Update Swedish translation
(cherry picked from commit 3033edb1ea32f765a451f9e1436839abf92d5fe9)
2020-11-13 14:21:47 +00:00
Andika Triwidada
c9aa2b95ae Add Indonesian translation
(cherry picked from commit 4fbacfe91e51f85804129b5e53b30053e16068c4)
2020-11-10 06:27:08 +00:00
Michael Gratton
ec7ea98494 Merge branch 'mjog/283-plain-text-whitespace-fixes' into 'mainline'
Email body whitespace fixes

See merge request GNOME/geary!610
2020-11-05 08:19:16 +00:00
Michael Gratton
a21982ae42 Merge branch 'mjog/draft-errors' into 'mainline'
Misc draft management issues

Closes #858 and #1044

See merge request GNOME/geary!613
2020-11-05 08:14:32 +00:00
Michael Gratton
af980e20ef Merge branch 'mjog/flatpak-libhandy-module' into 'mainline'
Remove libhandy module from Flatpak manifest

See merge request GNOME/geary!614
2020-11-05 08:13:08 +00:00
Andika Triwidada
a24a612450 Update Indonesian translation 2020-11-02 01:33:58 +00:00
Jordi Mas
827f878c42 Update Catalan translation 2020-11-01 13:19:23 +01:00
Piotr Drąg
b2a18510f4 Update Polish translation 2020-11-01 10:51:17 +01:00
Yuri Chornoivan
c269c655d8 Update Ukrainian translation 2020-10-29 18:11:36 +00:00
Michael Gratton
7c38cd6cef Merge branch 'mjog/888-reply-time' into 'mainline'
Include time zone in date/time format string for reply quotes

Closes #888

See merge request GNOME/geary!603
2020-10-29 12:58:23 +00:00
Tim Sabsch
197c87c15b Update German translation
(cherry picked from commit 1e1d68da011348a0585fea5cd1263997c8f31151)
2020-10-26 22:45:51 +00:00
Michael Gratton
9da2a57c6f org.gnome.Geary.yaml: Remove libhandy module, it is now in the SDK 2020-10-25 19:43:52 +11:00
Michael Gratton
5533ae323d Composer.Widget: Hide save button by default
Determining if this can be enabled currently requires opening the
remote, so hide it by default until we know for sure.
2020-10-25 19:06:51 +11:00
Michael Gratton
36daf80120 Composer.Widget: Clean up set_save_to_override method signature
The method now no longer requires async or throws an error, so remove
both.
2020-10-25 19:06:51 +11:00
Michael Gratton
6d5b0bc5b6 Composer.Widget: Rework draft manager management
Since the draft manager will now block until a remote for the draft
folder has been obtained, it now must be ensured that all calls to
opening the manager are backgrounded so that the UI isn't blocked
when offline.
2020-10-25 19:06:51 +11:00
Michael Gratton
be7938316e Geary.App.DraftManager: Wait for remote to be open in ctor
When working offline, the draft manager is more or less useless and will
just consume memory as drafts pile up. Also, when opening a composer
immediately after application launch,
`FolderProperties.create_never_returns_id` may not have been updated
yet, and hence will prevent drafts from being saved, even if supported.

So after opening the drafts folder, block waiting for the remote to
open so we get an accurate idea of if the folder is usable.

Fixes drafts issue mentioned in #955
2020-10-25 19:02:37 +11:00
Michael Gratton
6f1f94e554 Composer.Widget: Suppress unsupported draft folder messages
There's nothing people can do about the draft folder being unusable
for saving drafts, so just log a debug message and continue.

Fixes #858
2020-10-25 19:02:37 +11:00
Michael Gratton
6530c66e28 Geary.Imap.FolderSession: Fix null param critical with vala 0.50
Cancellable can be null, mark it as such - more fallout from
GNOME/vala#299

Fixes #1044
2020-10-25 12:55:28 +11:00
Jordi Mas
eb261a6ebd Update Catalan translation 2020-10-21 14:51:09 +02:00
Goran Vidović
77a865975f Update Croatian translation 2020-10-19 17:03:21 +00:00
Piotr Drąg
32cc96f959 Update Polish translation 2020-10-18 12:32:46 +02:00
Michael Gratton
ec3057daf7 ConversationWebView: Fix plain text emails sometimes being too wide
Using `whitespace: pre-wrap` to format plain text email sometimes
causes additional width to be allocated by the plain text blocks that
then does not get used due to the constraints on the HTML element.
The allocated space remains however and hence an un-needed horizontal
scrollbar appears.

Using `break-spaces` instead seems to help since it allows breaks after
a space character, leading to the additional space not otherwise being
allocated.
2020-10-17 15:08:10 +11:00
Michael Gratton
0e783de5bf ui/conversation-web-view.css: Work around oversized email body height
Sometimes when loading an email body, the viewport for the web view
will be set to 0 (when the web view is hidden or not yet laid out in
the widget hierarchy?). When this happens, since the width of the body
is specified as 100vw, the content width is reduced to the absolute
minimum and hence the content height is stretched right out. Then, when
the web view is displayed, the viewport width increases but the extra
whitespace is never reclaimed (scrollHeight never goes down), so the
height of the web view remains way too large, causing large amounts of
whitespace at the end of the email message (i.e. #283).

To work around this, set a min width for the HTML element so the initial
height of the email body isn't too badly wrong.
2020-10-17 13:55:36 +11:00
Michael Gratton
40f97de745 ui/conversation-web-view.css: Clean up HTML/BODY element lockdowns
Use some more obvious CSS to ensure we can get an accurate idea of the
content height for sizing the web view and that the body fits the
web view's width.
2020-10-17 13:55:36 +11:00
Michael Gratton
0dce103f6b ui/components-web-view.js: Use arrow functions for better this scoping 2020-10-17 13:55:36 +11:00
Michael Gratton
01a0f96b40 ui/components-web-view.js: Use ResizeObserver for watching pref height
Rather than guessing when the height might change by using a number
of different event listeners, use a ResizeObserver to get direct
notifications of any changes to the HTML element's size.
2020-10-17 11:29:05 +11:00
Michael Gratton
e15ece2cde Merge branch 'mjog/334-libstemmer' into 'mainline'
Move to libstemmer, add more languages

Closes #334

See merge request GNOME/geary!580
2020-10-14 22:01:25 +00:00
Marek Černocký
1213320209 Updated Czech translation 2020-10-14 11:15:26 +02:00
Marek Černocký
104b4979a7 Updated Czech translation 2020-10-14 11:11:09 +02:00
Michael Gratton
2e27a06889 build: Fix flatpak CI failing
Build libstemmer as a shared library. Use current mainline since that
at least supports build system args.

Shared lib patch courtesy of Stefano Rivera <stefanor@debian.org>,
updated to current head.
2020-10-14 20:05:15 +11:00
Michael Gratton
4f9df7d74a engine: Remove in-tree unicodesn stemmer
Now that search is using libstemmer, the in-tree stemmer is no longer
needed and can be removed.
2020-10-14 20:05:15 +11:00
Michael Gratton
968bc1a9e8 ImapDb.SearchQuery: Use libstemmer for stemming
Instead of shipping our own forked stemmer via SQLite, add a dependency
on libstemmer and use that instead.
2020-10-14 20:05:12 +11:00
Michael Gratton
7c0ad051bd build: Make comment about system libs with custom VAPI more generic 2020-10-14 20:02:18 +11:00
Michael Gratton
e70783daa4 Merge branch 'mjog/1001-text-line-endings' into 'mainline'
Geary.RFC822.Message: Fix plain text file attachment line ending conversion

Closes #1001

See merge request GNOME/geary!588
2020-10-14 09:00:26 +00:00
Michael Gratton
3aa9eb77a6 Merge branch 'mjog/data-location-migration' into 'mainline'
Automatic config migration and per-build-profile directories

Closes #326

See merge request GNOME/geary!608
2020-10-14 07:26:00 +00:00
Michael Gratton
368a0ced97 Application.Client: Ensure non-release builds don't clobber release data
Append the build profile to Geary's data directories when not running
a release build (or under Flatpak) so that e.g. development builds use
different config, cache and data directories.

This allows us to perform things like database schema updates with
relative abandon, since if we ask people to test development builds
with schema updates, they can always safely go back to their release
builds again.
2020-10-14 09:21:34 +11:00
Michael Gratton
99fc14a4e5 Application.Client: Introduce and use consts for build profiles 2020-10-14 09:21:34 +11:00
Michael Gratton
072156096d Application.Client: Support determining if running under flatpak 2020-10-14 09:21:34 +11:00
Michael Gratton
899834189c org.gnome.Geary.yaml: Enable copying release config for nightlies 2020-10-14 09:21:34 +11:00
Michael Gratton
9658e9e3b4 Geary.Controller: Migrate release config if needed
If the current config directory is empty, go looking for config data
in other well known locations and if found, copy it all across from
the most recently modified directory.

This supports migrating config from non-Flatpak to Flatpak locations,
and release config to devel profile locations.

Fixes #326
2020-10-14 09:21:34 +11:00
Michael Gratton
468ea6df58 Application.Client: Rename app user dirs to home dirs 2020-10-14 09:21:34 +11:00
Michael Gratton
6934841484 Application.Controller: Clean up invoking XDG config migration
Order args to better, create the config dir in the controller since
that is always needed, regardless of any migrations.
2020-10-14 09:21:34 +11:00