Commit graph

5421 commits

Author SHA1 Message Date
James Westman
0eed1bb21a composer: Add font buttons to toolbar
This replaces the menu options in the overflow menu with nicer looking, more
discoverable toolbar buttons. They work much the same way as before.
2020-01-21 19:43:37 -06:00
James Westman
aaf172b77f composer: Wrap toolbar when it gets too narrow
This way, the composer fits on even smaller screens than before.

Works by simply listening to the size-allocate signal and changing the
orientation of a box if the allocated width is less than or equal to the
combined width of the two rows.
2020-01-21 19:43:37 -06:00
James Westman
decd33d355 composer: Ellipsize from fields
Allow the from_multiple combobox to ellipsize if the name/address is too
long to fit on the screen.
2020-01-21 19:43:37 -06:00
James Westman
2aff2694b2 composer: Move formatting buttons to new toolbar
Splits the toolbar at the top of the composer into two action
bars at the bottom. One is always visible and contains undo, redo,
spellcheck, a menu, and a button to toggle the other action bar. The
other action bar contains the formatting buttons.

Also cleans up the margins around the fields at the top.

Implemented according to the mockups at
https://gitlab.gnome.org/Teams/Design/app-mockups/raw/master/mail/composer.png
2020-01-21 19:43:37 -06:00
Michael Gratton
a88134f5e5 Merge branch 'titlebar' into 'mainline'
Use HdyTitleBar and drop custom titlebar styles

See merge request GNOME/geary!397
2020-01-20 21:20:19 +00:00
Adrien Plazas
0f907c5754 main-toolbar: Drop the custom styles
Drop the custom titlebar styles as they are not needed since we use
HdyTitleBar, and since they can interfeer with it.
2020-01-17 09:54:41 +01:00
Adrien Plazas
392c134724 Use a HdyTitleBar
Also add the .sidebar style class to the separator to make it still take
the whole height. This will help dropping styling workarounds and ensure
animating the headerbars work well.
2020-01-17 09:54:17 +01:00
Kukuh Syafaat
bc4f208d36 Update Indonesian translation 2020-01-14 13:20:37 +00:00
Daniel Mustieles
6df665f173 Updated Spanish translation 2020-01-14 12:32:17 +01:00
Piotr Drąg
00de745dc6 Update Polish translation 2020-01-12 17:29:58 +01:00
Anders Jonsson
6e487b98cf Update Swedish translation 2020-01-11 16:26:05 +00:00
Emin Tufan Çetin
0c708d3927 Update Turkish translation 2020-01-10 16:02:06 +00:00
Daniel Mustieles
6dd100c58a Updated Spanish translation 2020-01-08 12:34:16 +01:00
Michael Gratton
164f52c5fd Merge branch 'ui-extended-fields' into 'mainline'
composer: Better UI for Cc/Bcc/Reply-To fields

See merge request GNOME/geary!393
2020-01-08 10:08:47 +00:00
Michael Gratton
8149f976a8 Merge branch 'fix-attachment-ui' into 'mainline'
composer: Center "drop files here" message

See merge request GNOME/geary!394
2020-01-08 09:52:41 +00:00
Michael Gratton
453caffc5a Merge branch 'fix-composer-headerbar' into 'mainline'
Fix close button in composer

See merge request GNOME/geary!395
2020-01-08 09:50:06 +00:00
James Westman
f6e4109c6e Fix close button in composer
In ccb11359, the composer headerbar was set to have a close button by
default. This caused the reply composer to have a close button that
would close the entire window. This commit reverts that part of
ccb11359.
2020-01-03 23:45:25 -06:00
Andika Triwidada
38fb4e6b1d Update Indonesian translation 2020-01-04 01:25:11 +00:00
James Westman
b39182b719 composer: Center "drop files here" message
The "Drop files here to add them as attachments" message was not
centered as it should have been, because the "expand" child property was
reset to false when it was removed/readded to its parent.
2020-01-03 17:02:44 -06:00
James Westman
7753d0a7f7 composer: Better UI for Cc/Bcc/Reply-To fields
Implemented according to the mockups at
<https://gitlab.gnome.org/Teams/Design/app-mockups/raw/master/mail/composer.png>.

- Use an animated revealer rather than instantly showing/hiding the
  fields
- Include Cc in the "extended fields"
- Use a toggle button instead of a menu item to show/hide these fields,
  for better discoverability
2020-01-01 19:25:54 -06:00
Jordi Mas
e51a3c580b Update Catalan translation 2019-12-30 23:58:00 +01:00
Daniel Mustieles
b2409ad7d1 Updated Spanish translation 2019-12-30 12:47:16 +01:00
Michael Gratton
6196f781ce Merge branch 'fix-ytnef-automagic' into 'mainline'
build: Fix automagic dependency on ytnef library

See merge request GNOME/geary!390
2019-12-30 11:40:16 +00:00
Piotr Drąg
8fdbf66701 Update Polish translation 2019-12-28 16:21:54 +01:00
Emin Tufan Çetin
f56e75af35 Update Turkish translation 2019-12-27 16:10:36 +00:00
Mart Raudsepp
91f78fb411 build: Fix automagic dependency on ytnef library
It would be best to use meson feature option type for ytnef and unwind,
but for now fix the automagic dependency on ytnef with the existing
meson_options.txt setup.
It was adding ytnef to list of dependencies unconditionally, and then
also if tnef-support was enabled. So if the option was disabled, but the
pkg-config file was present, it would still link to it surprisingly.
Just remove the unconditional addition to dep, and rely on the already
existing conditional addition to deps.
2019-12-26 19:28:07 +02:00
Anders Jonsson
4f25f65236 Update Swedish translation 2019-12-22 21:34:53 +00:00
Michael Gratton
b08cee7883 Fix build warning. 2019-12-21 18:31:03 +11:00
Michael Gratton
e1295d2aa7 Fix crash in Geary.RFC822.Message.without_bcc
Second GMime workaround in that method no longer needed, and was causing
a crash, so remove it.
2019-12-21 18:23:40 +11:00
Michael Gratton
ba3b91f037 Merge branch 'letorbi/gmime-3' into 'mainline'
Upgrade to GMime 3.2.4

Closes #622

See merge request GNOME/geary!382
2019-12-21 05:41:30 +00:00
Torben
77d44d41a3 Merge branch 'mainline' into letorbi/gmime-3 2019-12-18 11:38:02 +01:00
Michael Gratton
c9d6d9666a Merge branch 'mjog/search-refinement' into 'mainline'
Search implementation refinement

See merge request GNOME/geary!389
2019-12-17 23:56:23 +00:00
Michael Gratton
e7f85710e9 Move display-related Util.Email.shorten_url function to Util.Gtk
Add a short doc comment, tweak slightly.
2019-12-18 09:25:07 +11:00
Michael Gratton
77125fc17d Remove some redundant collection copies 2019-12-18 09:25:07 +11:00
Michael Gratton
cc0fb9eef2 Remove unused Geary.Folder::list_local_email_fields_async method 2019-12-18 09:25:07 +11:00
Michael Gratton
dda8d9baf1 Remove distinct search folder email identifiers
The only reason SearchFolder.EmailIdentifier exists was to store the
date for ordering the folder, but that can be done with any old class,
meaning we can simply pass though existing ImapDb ids to clients, fixing
a lot of bugs and corner cases along the way.
2019-12-18 09:25:07 +11:00
Michael Gratton
5eb6bb2a6d Update and simplify SearchBar component
Rename source file name and contents to match code convention, add
transation comments, remove extra API in favour of simply exposing the
search entry publically. Extend Hdy.Searchbar so that the width of the
entry grows as needed.
2019-12-18 09:25:07 +11:00
Michael Gratton
f025f6904d Move SearchFolder management into the client
Rename the search folder again to App.SearchFolder, move its id class
into it as an inner class. Remove search folder from the engine so the
application can manage it and it's policy in the future. Also remove
the outbox from the accout's list of local folders, so that code can
be removed altogether.
2019-12-18 09:25:07 +11:00
Torben
7da9ee1252 Fix undefined variable error 2019-12-17 13:41:35 +01:00
Torben
ca2bab0338 Re-activate and improve prepare_header_text_part() test 2019-12-17 13:23:28 +01:00
Torben
4374294400 Remove redundant call to set the GMime.Parser format; Add some comments 2019-12-17 12:16:06 +01:00
Torben
793f40fc4e Set default parser options directly after init 2019-12-16 15:05:47 +01:00
Torben
4677f4fe4a Check if header exists before reading value 2019-12-16 14:39:50 +01:00
Torben
c0e8f717e8 Allow addresses without domains (fixes disabled mailbox-addresses-test) 2019-12-16 00:34:30 +01:00
Torben
b0df4d5fd8 Return raw but unfolded header values (fixes message-test) 2019-12-16 00:31:07 +01:00
Torben
82c2b36c6e Make mailbox-address tests pass 2019-12-14 00:04:03 +01:00
Torben
5069556a7e Flush sinks of GMime filter streams 2019-12-13 21:35:33 +01:00
Jordi Mas
3640bef9c9 Update Catalan translation 2019-12-12 22:26:51 +01:00
Michael Gratton
130fd95b86 Remove Geary.Account::search_upgrade_monitor
Implement the upgrade call as an account operation so the background
monitor takes care of reporting its progress.
2019-12-12 11:19:51 +11:00
Michael Gratton
924104c282 Clean up search folder implementation
Move SearchFolder and search EmailIdentifier implementation out of
ImapDb and into its own package. Decouple both from ImapDB, and improve
the implementation, fixing a few inefficiencies. Merge search
FolderProperties into the SearchFoldern implementation as an inner
class.

Merge SearchTerm into ImapDB.SearchQuery as an inner class and move the
outer class's source down a level, since it was the only file left in
the imap-db/search dir.
2019-12-12 10:47:52 +11:00