Commit graph

5338 commits

Author SHA1 Message Date
Tobias Sette
d9939daf9b chore: add matrix channel in README.md 2019-12-05 02:29:48 +00:00
Emin Tufan Çetin
875909e4f4 Update Turkish translation 2019-12-02 16:25:44 +00:00
Michael Gratton
21482ffcbe Merge branch 'mjog/logging-update' into 'mainline'
Logging update

See merge request GNOME/geary!384
2019-12-02 10:42:00 +00:00
Michael Gratton
d949a8e500 Don't log non-enabled levels from Geary.Logging.Source
We want to do this in the future, but only when we have better means
of selecting which log messages to display or not.
2019-12-02 18:21:21 +08:00
Michael Gratton
24a0ad70ae Ensure some kind of logging source location is being printed
If printing source and line number is not being printed (it isn't at
the moment) then print the class name of the inner-most logging source
to give an idea of where the message came from.
2019-12-02 18:19:52 +08:00
Michael Gratton
dc665d20dd Update Geary.ImapEngine classes to implement Geary.Logging.Source 2019-12-02 16:31:42 +11:00
Michael Gratton
9884cd2e6c Update Geary.IMAP classes to implement Geary.Logging.Source 2019-12-02 16:31:11 +11:00
Michael Gratton
778a06af77 Add Geary.Logging.Source::log method
Generic method allows custom level and flags to be specified.
2019-12-02 11:42:15 +11:00
Michael Gratton
70dffd783a Add new Geary.Logging.State object for snapshotting source state
Add State object and Geary.Logging.State::to_logging_state factory
method. Use this in LogRecord to print formatted log messages so that
sources can log state that may change between being logged and the
log message being displayed/saved.

Provide a default implementation of Source::to_string that uses the
instance's current state.

Update implementing classes.
2019-12-02 11:38:55 +11:00
Michael Gratton
56601cfb5c Ensure AccountProcessorTest stops its test article
Add ::tear_down, stop the test article from running, so it doesn't
keep executing after tests have run.
2019-12-02 10:40:31 +11:00
Michael Gratton
978ff12810 Rename Geary.Loggable to Geary.Logging.Source
Rename the class because we need to distinguish between logging sources
and logging state, for cases when the logged object's state may change
between being logged and being displayed.

Rename util souce file to match new name space per source code
convernstion.
2019-12-01 19:37:15 +11:00
Michael Gratton
7517da5faa Merge branch 'wip/actually-imap-logout' into 'mainline'
Actually imap logout

See merge request GNOME/geary!381
2019-12-01 08:07:47 +00:00
Michael Gratton
d7fbf3b27f Merge branch 'conversation-dnd-icon-fix' into 'mainline'
Fix for conversation DND copy/move icon bug

See merge request GNOME/geary!379
2019-12-01 07:28:03 +00:00
Michael Gratton
c080cd56bd Merge Geary.Imap.ClientSession logout states
Merge LOGGING_OUT and LOGGED_OUT into single LOGOUT state to match
RFC 3501. This leaves CLOSED as the only terminal state, and simplifies
the FSM a bit.
2019-12-01 17:27:52 +11:00
Chris Heywood
2261d0cb64 Fix for conversation DND copy/move icon bug
Fixes bug brought in with folder highlight on conversation DND recent
merge
2019-11-30 14:17:12 +01:00
Michael Gratton
8306365ce8 Log out IMAP connections when stopping Imap.ClientService cleanly
When closing the a session cleanly (i.e. since the service is being
stopped or a session is no longer needed, issue a logout instead of
simply terminating the connection. Use a second cancellable for
terminating logouts however when closing so we don't hang.
2019-11-30 17:51:29 +11:00
Michael Gratton
0ebbc9b67c Don't bother terminating IDLE when logging out, will be disconnecting 2019-11-30 17:42:32 +11:00
Michael Gratton
3176667e38 Treat LOGGED_OUT as a valid terminal FSM state 2019-11-30 17:42:32 +11:00
Michael Gratton
3f9be2c099 Disconnect and signal logout once the command successfully completed 2019-11-30 17:41:15 +11:00
Michael Gratton
76190409fd Handle the expected untagged IMAP BYE status on LOGOUT 2019-11-30 17:39:16 +11:00
Michael Gratton
fced79bfd2 Merge branch '422-conversation-dnd-folder-highlight' into 'mainline'
Highlight destination folder upon conversation DND

Closes #422

See merge request GNOME/geary!377
2019-11-30 03:30:44 +00:00
Rafael Fontenelle
a837179047 Update Brazilian Portuguese translation 2019-11-29 06:20:29 +00:00
Piotr Drąg
70dee4794d Update POTFILES.in 2019-11-28 15:37:06 +01:00
Chris Heywood
eb36fd5929 Highlight destination folder upon conversation DND
Further utilises partially enabled automatic DND. Fixes #422.
2019-11-28 11:33:28 +01:00
Michael Gratton
151d9aed86 Merge branch 'mjog/575-drop-libunity' into 'mainline'
Drop libunity dependency

Closes #575

See merge request GNOME/geary!376
2019-11-27 06:44:58 +00:00
Michael Gratton
9790d9a3bb Remove libunity dependency from the build 2019-11-27 17:24:42 +11:00
Michael Gratton
7a05541ea0 Add minimal Unity Launcher API implementation
Hook it up to NotificationPlugin.
2019-11-27 17:17:16 +11:00
Michael Gratton
c66a108442 Merge branch 'mjog/conversation-message-link-popover' into 'mainline'
Break out ConversationMessage link popover into seperate UI file

See merge request GNOME/geary!375
2019-11-27 00:39:18 +00:00
Michael Gratton
e99bf29bd5 Break out ConversationMessage link popover into seperate UI file
This reduces the number of widgets to be parsed and constructed when
showing a conversation, improving loading perf a bit for large
conversations.

See #230
2019-11-27 11:17:04 +11:00
Michael Gratton
e4a5b85698 Merge branch 'mjog/558-webkit-shared-process' into 'mainline'
Share per-window WebkitGTK WebProcesses

Closes #558

See merge request GNOME/geary!374
2019-11-27 00:15:51 +00:00
Michael Gratton
9eff8a36f0 Add release note about conversation loading perf 2019-11-27 10:37:49 +11:00
Michael Gratton
4927409848 Minor code and doc comment cleanup 2019-11-26 19:37:49 +11:00
Michael Gratton
4b710074fd Use SLIDE_UP transition for ComposerMessage body animantion
This isn't as nifty, but makes the transiton between conversations
less flashy and hence less janky.
2019-11-26 19:37:49 +11:00
Michael Gratton
6c57839ddf Fix remote resource blocking with shared processes
Now that a shared WebKitUserContentManager is shared between web views,
the old "load a JS file when remote resource loading is allowed" doesn't
work any more. Instead, set a variable on the frame's window object
in the web extension notified that a new page has been loaded, and
use that instead.
2019-11-26 19:37:49 +11:00
Michael Gratton
1a391758fa Minor perf improvement when conversation load was cancelled.
Lazily initialise the ConversationMessage's web onlt after checking to
see if the conversation load as been cancelled or not.
2019-11-26 19:37:49 +11:00
Michael Gratton
ec155ed707 Re-use WebKitGTK WebProcess between conversation loads
Since the WebProcess will be torn down when the last WebView using it is
destroyed (not when the view object is deleted), we need to keep
previous conversation widgets around until after the new conversation is
loaded.
2019-11-26 19:37:49 +11:00
Michael Gratton
5b04686dbb Re-use WebKitGTK WebProcesses between ConversationWebView
Add a new ctor to Component.WebView and ConversationWebView to be able
to use the WebKit.WebView::related-view property at construction time.
Add new ConversationViewer::previous-web-view property to store
the per-window last created web view. Use this when constructing new
wen views in ConversationMessage to share the WebProcess.
2019-11-26 14:26:03 +11:00
Michael Gratton
7b35e53343 Remove WebKitGTK 2.24 shared process workaround
See #558
2019-11-26 14:26:03 +11:00
Michael Gratton
8140135d7b Fix Components.WebViewTestCase fixture setup and tear down
Move config and web view creation into ::set_up, set them to null in
::tear_down.
2019-11-26 14:26:03 +11:00
Michael Gratton
ceb9c9764a Rename ClientWebView to Components.WebView per code style 2019-11-26 14:26:03 +11:00
Konstantin Kharlamov
99d4e1bdce conversation-viewer: create web_view on demand
Time for loading a 204 mails discussion, milliseconds

Before: 10662, 10826, 11134
After :  9972,  9810,  9881

Improvement: ≈10%

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
2019-11-26 14:26:03 +11:00
Konstantin Kharlamov
876b3923a8 conversation-viewer: privatize web_view
Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
2019-11-26 14:26:03 +11:00
Daniel Mustieles
66f6525480 Update Spanish translation 2019-11-25 10:54:25 +00:00
Alexandre Franke
e8412192f9 Update French translation 2019-11-25 09:58:44 +00:00
Michael Gratton
c758bd57ae Update THANKS 2019-11-24 13:13:48 +11:00
Michael Gratton
96fbc085cd Update files for 3.35.2 2019-11-24 13:09:29 +11:00
Daniel Mustieles
7af0c6fb1d Updated Spanish translation 2019-11-21 12:55:01 +01:00
Daniel Mustieles
07a231e108 Update Spanish translation 2019-11-21 11:42:46 +00:00
Michael Gratton
01d34ccc12 Merge branch 'wip/fix-main-window-shortcuts' into 'mainline'
Make single key shortcuts optional

See merge request GNOME/geary!373
2019-11-20 23:25:01 +00:00
Michael Gratton
dfe0b5cc76 Update online keyboard shortcuts help
Make it a bit more compact by merging a few one/the other entries,
make labels read better.
2019-11-21 10:00:34 +11:00