Michael Gratton
e8061379ec
Application.Controller: Clean up config/data vars in ctor
2020-10-14 09:21:31 +11:00
Michael Gratton
d7e05ab20e
client: Move Migrate namespace to be under Util
2020-10-14 09:20:42 +11:00
Emin Tufan Çetin
1f623bf100
Update Turkish translation
2020-10-13 13:48:40 +00:00
Michael Gratton
fac257a273
Merge branch 'mjog/558-webkit-shared-process-redux' into 'mainline'
...
Webkit shared process redux
See merge request GNOME/geary!565
2020-10-13 08:27:01 +00:00
Michael Gratton
2357f8fd01
Merge branch 'mjog/default-development-build' into 'mainline'
...
Set default build profile to development
See merge request GNOME/geary!597
2020-10-13 08:00:26 +00:00
Michael Gratton
4db6d01e23
client: Remove perf relnote, it's not really that noteworthy
2020-10-13 18:49:57 +11:00
Yuri Chornoivan
cef6a02953
Update Ukrainian translation
2020-10-12 17:41:48 +00:00
Michael Gratton
6dade0e4f1
Merge branch 'mjog/libhandy-warning-workaround' into 'mainline'
...
Application.Client: Work around libhandy bug when opening main windows
See merge request GNOME/geary!606
2020-10-12 13:08:27 +00:00
Michael Gratton
3f7c054db0
build: Bump WebKitGTK min version to include UserMessage support
2020-10-13 00:02:09 +11:00
Michael Gratton
1d80ed2034
ComposerPageState: Use CSS for managing focus with composer body parts
...
Now that the `:focus-within` pseudoclass is supported, use this rather
than some custom JS to update custom HTML classes. This also prevents
spurious mutation events from firing.
2020-10-13 00:02:09 +11:00
Michael Gratton
0609fbc3d7
Util.JS: Remove now-unused code
2020-10-13 00:02:09 +11:00
Michael Gratton
92e842bf08
ConversationViewer.ConversationMessage: Fix valadoc warning
2020-10-13 00:02:09 +11:00
Michael Gratton
47b134a04e
Components.WebView: Remove now-unused message handler infrastructure
2020-10-13 00:02:09 +11:00
Michael Gratton
eba82a1fbd
GearyWebExtension: Trivial code clean up
2020-10-13 00:02:09 +11:00
Michael Gratton
7950ce50c6
GearyWebExtension: Untangle extension and JS interaction a bit
...
Move selection changed event listener into JS so it doesn't have to
cross the JS/native boundary twice.
Move sending remote load blocked from JS to the extension since we can
do that directly now and again so the JS/native boundary doesn't need
to be double-crossed again.
2020-10-13 00:02:09 +11:00
Michael Gratton
7b0146274c
Conversation.WebView: Convert to using messages for JS → client comms
2020-10-13 00:02:09 +11:00
Michael Gratton
3655f4896f
Composer.WebView: Convert to using messages for JS → client comms
2020-10-13 00:02:09 +11:00
Michael Gratton
fb96676fbd
Components.WebView: Convert to using messages for JS → client comms
2020-10-13 00:02:09 +11:00
Michael Gratton
89453931bf
Util.Js: Improve JSC Value to GLib.Variant conversion
...
Stop needlessly wrapping object members and array elements in
variant variants.
Don't wrap object values in variants since the code is already using
vardicts for these. Return a variant array if a JS array contains values
of all the same type and don't wrap these in variants, else return
a tuple, which don't need to be wrapped either.
2020-10-13 00:02:09 +11:00
Michael Gratton
6162785d99
GearyWebExtension: Add support for sending messages from JS to client
...
Define a vala-backed JS class in the extension and make that available
to pages when they are registered. Add some helper JS to PageState for
defining message sending functions. Listen for these in
Components.WebView and dispatch to the registered callback for it.
2020-10-13 00:02:09 +11:00
Michael Gratton
db69807836
GearyWebExtension: Add factory method for error user messages
2020-10-13 00:02:09 +11:00
Michael Gratton
c813aa5707
Components.WebView: Check for pass up exceptions when calling JS code
...
Update web extension to check for errors when invoking page state
methods and pass a message back if found. Check for this, decode and
throw a vala error in the WebView if found.
2020-10-13 00:02:09 +11:00
Michael Gratton
ff565bc6ef
Components.WebView: Convert to using messages for JS method invocation
...
Use WebKitGTK UserMessage objects for invoking JS methods rather than
serialising to JS strings and running those. This is possibly slightly
less efficient, but removes the onus on serialising to and parsing from
JS and once switched over from message handlers to UserMessage objects
will be using a single uniform IPC interface for both.
2020-10-13 00:02:09 +11:00
Michael Gratton
1ba2bd0f5b
Util.JS: Support converting between JSC.Value and GLib.Variant objects
...
Add `variant_to_value` and `value_to_variant` methods, document them
and add tests.
2020-10-13 00:02:09 +11:00
Michael James Gratton
d7af23201c
Revert "Revert "Merge branch 'mjog/558-webkit-shared-process' into 'mainline'""
...
This reverts commit cbe6e0ba9b , which reinstates
commit e4a5b85698 .
See !411 and !374
2020-10-13 00:02:02 +11:00
Michael Gratton
0010550ad6
Application.Client: Work around libhandy bug when opening main windows
...
GNOME/libhandy#305
2020-10-12 23:24:10 +11:00
Michael Gratton
d0fff267f8
Merge branch 'adaptive' into 'mainline'
...
Make the main window adaptive
Closes #442
See merge request GNOME/geary!401
2020-10-12 10:41:32 +00:00
Julian Sparber
70a40893a3
action-bar: Add an action bar to the conversations list (2-panel)
...
This moves the actions from the headerbar to the action bar at the
bottom of the conversations list when multiple conversations are
selected. This changes is needed so that the user can still interact
with the conversations when folded.
This also hides the actions from the Headerbar and action bar when
no conversation is selected.
2020-10-12 11:03:55 +02:00
Julian Sparber
98017cfb39
main-toolbar: Create object containing conversation actions
...
This creates a new object that contain the 4 groups of actions that used
to be in the conversation-viewer headerbar.
This allows the widgets to be moved to differen locations, e.g. to an
action bar that will be added in a later commit.
2020-10-12 11:03:04 +02:00
Anders Jonsson
96755ab09e
Update Swedish translation
...
(cherry picked from commit a7f9f7a27cf8c0d12e6af2e7b04bb89576aff93b)
2020-10-10 12:07:37 +00:00
Julian Sparber
f8f223da46
main-window: Block forward navigation when viewer is empty
...
Empty viewer includes: - no selected conversation
- no conversation in folder
- selected more then one conversation
2020-10-10 10:41:49 +02:00
Julian Sparber
d6c546e2d5
composer: close the composer when navigating back
2020-10-10 10:41:49 +02:00
Julian Sparber
0b743ab0d3
conversation-list: use shift+activate to open conversation in new window
...
Open on shift+double click and shift+space/enter the selected
conversation in a new window.
2020-10-10 10:41:49 +02:00
Julian Sparber
1f2896e9a7
composer: Switch leaflet to composer when folded
2020-10-10 10:41:49 +02:00
Adrien Plazas
d97d86cbc7
toolbar header group
2020-10-10 10:41:49 +02:00
Julian Sparber
49823ec054
application-main-window: add navigation via signle click on folder/conversation
...
Opening a conversation in a new window is currently disabled, because we
need a new key/button combination.
2020-10-10 10:41:49 +02:00
Julian Sparber
28a19775b8
main-toolbar: Add back buttons for leaflet navigation
2020-10-10 10:41:49 +02:00
Julian Sparber
115b055e7b
main-window: Add leaflet navigation with Alt+Arrow keys
2020-10-10 10:41:49 +02:00
Adrien Plazas
28e3192674
application-main-window: Sync the leaflets' swipe state
...
This keeps the swiping state of the leaflets in sync.
2020-10-10 10:41:49 +02:00
Adrien Plazas
2139636d82
main-toolbar: Add add_to_swipe_groups()
...
This will be used to sync the swipe state of the leaflets.
2020-10-10 10:41:49 +02:00
Adrien Plazas
12a7101ba5
Use leaflets in the UI
...
There is no way to navigate into the app, but it's a start.
v2: replace expand with child vexpand
2020-10-10 10:41:49 +02:00
Adrien Plazas
edfb1a2cf3
application-main-window: Sync the pane size request
...
Bind each pane's elements minimum size requests via size groups.
2020-10-10 10:41:49 +02:00
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