Commit graph

4614 commits

Author SHA1 Message Date
Michael Gratton
5c7c382ca5 Fix failing test when ytnef support disabled 2019-04-16 23:45:38 +10:00
Michael Gratton
25de4d3049 Disable ytnef in Fedora CI while the package there is too old 2019-04-16 23:11:19 +10:00
Michael Gratton
4497b1275a Merge branch 'tnef-support' into 'mainline'
TNEF (winmail.dat) parsing support via libytnef

See merge request GNOME/geary!10
2019-04-16 12:38:25 +00:00
Piotr Drąg
d6e6259f41 Update Polish translation
Fixes https://gitlab.gnome.org/Teams/Translation/pl/issues/2
2019-04-13 10:29:33 +02:00
Michael Gratton
ef71e4c4c2 Merge branch 'wip/775956-dbus-activation' into 'mainline'
Support DBus activation

See merge request GNOME/geary!204
2019-04-12 12:30:27 +00:00
Michael Gratton
40c98d5eb4 Fix handling of mailto command line args 2019-04-12 22:04:56 +10:00
Michael Gratton
3c1ae51e29 Minor code cleanup 2019-04-12 22:04:56 +10:00
Michael Gratton
6605682cc4 Add translation comments denoting command line option strings 2019-04-12 22:04:56 +10:00
Michael Gratton
2578c6c089 Re-implement --hidden as a deprecated command line option
When used, start hidden, but print a warning and update the autostart
file if needed so it doesn't get used again automatically.
2019-04-12 22:04:56 +10:00
Michael Gratton
5eb8d1452d Modernise autostart desktop file manager class a bit
Move it into the application namespace, give it a slightly more generic
name, move its instance from the controller to the application, and
modernise its source code.
2019-04-12 22:04:56 +10:00
Michael Gratton
bad2acec58 Fix some incorrect command line arg values, sort alphabetically 2019-04-12 22:04:56 +10:00
Michael Gratton
6f2187f5e2 Fully implement --quit
Ensure that -q also shuts down non-local instances.
2019-04-12 22:04:56 +10:00
Michael Gratton
d8e4c31256 Move command line processing into GearyApplication
Remove now-empty args namespace and source file.
2019-04-12 22:04:56 +10:00
Michael Gratton
7b861a224e Fix controller not being started when started as DBus service 2019-04-12 22:04:56 +10:00
Michael Gratton
548babc7bb Don't (necessarily) quit on Ctrl+W, just close the window 2019-04-12 22:04:56 +10:00
Michael Gratton
34e4b47396 Don't keep loading more conversations when started in background 2019-04-12 22:04:56 +10:00
Michael Gratton
3ae24d75b8 Update main window lifecycle management
Ensure main window is not shown when started as service, and is only hidden when closed
and the background startup pref is set.
2019-04-12 22:04:56 +10:00
Niels De Graef
9acf5d344d Make Geary DBus-activatable. Bug 775956.
* org.gnome.Geary.service.in: create, and let it be installed by CMake.

* org.gnome.Geary.desktop.in: add `DBusActivatable=true`.

* geary-autostart.desktop.in: use `--gapplication-service` instead of
hidden.

* Change the way arguments are parsed:
  * Use the _command-line_ and _handle-local-options_ signals instead
    of _local-command-line_.
  * Remove the `--hidden` option (replaced by `--gapplication-service`)
  * Use VariantDict (which is a little cleaner)
  * Don't use global variables in Arg, but set them in
  the config instead.
  * We can no longer set a global summary due to the new option handling
  in GApplication. On IRC, I got the feedback that info like this should
  be going into a manpage.

* Since the QUIT-action can now be called without ever activating the
app, make the necessary changes to the `GearyController`:
  * `main_window` and `current_conversations` can be null.
  * use `pending_mailtos()` for the compose action as well.
  * Don't update the UNDO action if we're closing down.

* More instance variables prefixed with this (we're changing the lines
anyway, might as well do it properly).

* `Environment.set_prgname()` is already executed in GApplication.run(),
so no more need for `GearyApplication.PRGNAME`.

Signed-off-by: Niels De Graef <nielsdegraef@gmail.com>
2019-04-12 22:04:56 +10:00
Michael Gratton
ddced6f6f4 Merge branch 'libm-dep' into 'mainline'
engine: add missing libm dependency

See merge request GNOME/geary!202
2019-04-11 23:18:38 +00:00
Greg V
6acddfd02c engine: add missing libm dependency
floor() is now used at rfc822-message-data.vala:213 via GLib.Math.floor
2019-04-11 19:36:19 +03:00
Oliver Giles
18fcf0e18f TNEF (winmail.dat) parsing support via libytnef 2019-04-11 12:24:52 +03:00
Michael Gratton
ef8f97628e Merge branch 'wip/remove-ci-test-workaround' into 'mainline'
Remove CI test workaround

See merge request GNOME/geary!198

(cherry picked from commit 8654c7ae136d2467f7b5b2e85a436d9039bd64bc)

4fc688de Revert "Work around DB tests always failing on gcc150.osuosl.org CI runner"
6b4b598a Add test runner multiplier to account for slow CI runners
2019-04-09 16:16:10 +00:00
Piotr Drąg
134eca3f7c Update POTFILES.in 2019-04-08 13:54:35 +02:00
Michael Gratton
6234405e4f Merge branch 'wip/geary-inspector' into 'mainline'
Add an Inspector to Geary

See merge request GNOME/geary!199
2019-04-08 09:26:05 +00:00
Michael Gratton
ae1e36e707 Fine tune Inspector filtering
Do a case-insensitive match, ignore empty strings, make matching words
conjunctive.
2019-04-08 18:05:03 +10:00
Michael Gratton
9c5dc14865 Use MainContext.invoke to handle appending new log messages
This ensures the correct approach is used, regardless of what thread
and context is currently executing.
2019-04-08 18:05:03 +10:00
Michael Gratton
e428d7b2cb Minor code tidy up 2019-04-08 18:05:03 +10:00
Michael Gratton
194ca0e273 Blacklist displaying certain annoying messages in the Inspector 2019-04-08 18:05:03 +10:00
Michael Gratton
993f7cc65d Ensure there is only ever one Inspector open at a time 2019-04-08 18:05:03 +10:00
Michael Gratton
d87a2b02e0 Enable some keyboard shortcuts for the inspector 2019-04-08 18:05:03 +10:00
Michael Gratton
ccde37c20d Enable pausing/unpausing the log viewer 2019-04-08 18:05:03 +10:00
Michael Gratton
584ead9eb8 Tidy up inspector tooltips 2019-04-08 18:05:03 +10:00
Michael Gratton
6dc8b278f0 Append new log records to the inspector and scroll to them 2019-04-08 18:05:03 +10:00
Michael Gratton
fc119ebb78 Add a means for apps to be notified as new log records are added 2019-04-08 18:05:03 +10:00
Michael Gratton
e5893e1d66 Implement filtering log messages 2019-04-08 18:05:03 +10:00
Michael Gratton
b5f27dce79 Add UI and implement saving details and logs to file 2019-04-08 18:05:03 +10:00
Michael Gratton
0e4486bbf4 Make Copy button copy selected log rows, make it less prominent 2019-04-08 18:05:03 +10:00
Michael Gratton
1b121e0a8e Update the UI when the switcher pane changes 2019-04-08 18:05:03 +10:00
Michael Gratton
1f4ef0ab95 Display all known logs in inspector 2019-04-08 18:05:03 +10:00
Michael Gratton
0bac8f77fa Keep a bounded list of last n log messages
Allow these log records to be accessed by the application.
2019-04-08 18:05:03 +10:00
Michael Gratton
ae4d7655b0 Add basic Geary Inspector, hook it up to Alt+Shift+I 2019-04-08 18:05:03 +10:00
Michael Gratton
93cb84b0a3 Make runtime information collection reusable elsewhere
Move gathering information like app & lib versions to GearyApplication,
also gather app prefix and distro info.
2019-04-08 18:05:03 +10:00
Michael Gratton
433215570b Make generic account editor ListBoxRow style reusable elsewhere 2019-04-08 18:05:03 +10:00
Michael Gratton
7f13ce491d Target Ubuntu and Fedora devel images in CI
This should provide some more flexibility in adding new deps (like
libhandy).
2019-04-08 18:05:03 +10:00
Michael Gratton
ac461747c3 Depend on libhandy for the client build 2019-04-08 18:05:03 +10:00
Michael Gratton
a83a68ef39 Merge branch 'wip/135-contact-popovers' into 'mainline'
Contact popovers

Closes #135

See merge request GNOME/geary!173
2019-04-08 00:56:31 +00:00
Michael Gratton
ffaa43cbfe Tweak spoofed email warning UI 2019-04-08 10:26:04 +10:00
Michael Gratton
10051e0354 Implement spoofed email address UI for ContactsPopover 2019-04-08 10:26:04 +10:00
Michael Gratton
44b01a8d9d Fix sender names from GitLab, Discourse, etc displayed with wrong names
This caches Folks individuals instead of Contacts, so a new Contact
instance is created for each email address not in Folks. As a result,
contacts based on the same email address but different names are not
used for email addresses with different names.
2019-04-08 10:26:04 +10:00
Michael Gratton
53f0686cef Start loading remote images if pref enabled via sender's contact popover 2019-04-08 10:26:04 +10:00