Commit Graph

143 Commits

Author SHA1 Message Date
Milan Crha 3cbf9b5da8 I#792 - Composer: Some shortcuts depend on the current keyboard layout ][
Closes https://gitlab.gnome.org/GNOME/evolution/issues/792
2020-03-06 13:23:49 +01:00
Milan Crha 2b7b2c61fb EWebKitEditor: Prevent Replace-all to cycle indefinitely in some cases
In case the search and the replace words are similar (like changing
capitals or such and searching case insensitively), the search can
repeat indefinitely for replace all. This makes the Replace-all
use only search from the top of the document to the bottom, without
wrap around, thus it'll stop at the end of the document on its own.
2020-03-06 10:22:14 +01:00
Milan Crha fd7edcb657 I#792 - Composer: Some shortcuts depend on the current keyboard layout
Closes https://gitlab.gnome.org/GNOME/evolution/issues/792
2020-02-20 15:59:49 +01:00
Milan Crha 1d7e3e75cc EWebView: Use JavaScriptCore API of WebKitGTK+
All the previews (in Mail, Contacts, Memos and Tasks) stop using
deprecated WebKitGTK+ DOM API through a WebExtension (and its D-Bus
API) and start using the JavaScriptCore API (and JavaScript as such).
This allows to lightweight the WebExtension for the EWebView
significantly, including drop of the D-Bus API of it, fully relying
on the Inter-Process-Communication of WebKitGTK+ itself.
2019-10-09 12:26:12 +02:00
Milan Crha c1d37800e2 I#587 - Change how Evolution talks to WebKitWebProcess
Required for WebKitGTK+ 2.26.0+.

Closes https://gitlab.gnome.org/GNOME/evolution/issues/587
2019-09-11 22:43:00 +02:00
Milan Crha 8469b63947 I#551 - Enhance URL end recognition regarding closing bracket
Closes https://gitlab.gnome.org/GNOME/evolution/issues/551
2019-08-19 15:40:46 +02:00
Дилян Палаузов d2b83b197b M!27 - Ignore the value of some GString functions
… or start using it, whatever is appropriate.

Callng “x = g_string_append (x, y)” is equivalent to
“g_string_append (x, y)".

Likewise for g_string_erase().
2019-07-11 12:26:50 +00:00
Дилян Палаузов 6dc66755af M!23 - Prefer g_string_append_c() over g_string_append()
Closes https://gitlab.gnome.org/GNOME/evolution/merge_requests/23
2019-07-08 15:09:10 +02:00
Milan Crha 1a96057c82 I#433 - Change <div>/<p> styling in composer to better match preview panel
Closes https://gitlab.gnome.org/GNOME/evolution/issues/433
2019-06-10 17:15:06 +02:00
Guillaume Castagnino 5d008d86af M!14 - Allow floating point value for webview body font size
Closes https://gitlab.gnome.org/GNOME/evolution/merge_requests/14
2019-05-24 07:48:13 +02:00
Milan Crha 57aa3bce7d Address some issues reported by static analyzers (Coverity Scan, clang) 2019-05-17 12:51:13 +02:00
Milan Crha a1798c9e2f I#343 - Composer autosave can overwrite backup with empty content
Closes https://gitlab.gnome.org/GNOME/evolution/issues/343
2019-03-12 14:02:10 +01:00
Milan Crha 6129aeaeec I#327 - Paragraph format change in quotation can break stored selection
Closes https://gitlab.gnome.org/GNOME/evolution/issues/327
2019-03-11 11:15:02 +01:00
Milan Crha d7e3eab132 [EWebKitEditor] Fix few memory leaks
Related to a GVariant returned by e_util_invoke_g_dbus_proxy_call_sync_wrapper_with_error_check().
2019-02-21 15:15:44 +01:00
Milan Crha 07a2087169 Use GWeakRef when watching D-Bus bus names
With certain operations interleaving the callback to name-appeared
signal could be called after the object in the user_data had been freed.
Even when the free of the object unwatches the D-Bus name, it's too
late, because the signal callback is already scheduled in the main loop.

Reported downstream at:
https://bugzilla.redhat.com/show_bug.cgi?id=1677846
2019-02-21 15:00:17 +01:00
Milan Crha 24e434f45c Change parentheses in an if() to avoid clang warning 2019-02-04 10:59:10 +01:00
Milan Crha 17d1497676 I#288 - Fails to extract downloaded remote images from message preview
Closes https://gitlab.gnome.org/GNOME/evolution/issues/288
2019-01-21 16:25:56 +01:00
Milan Crha aff63c3cf5 I#275 - [Composer] Ctrl+Shift+Backspace deletion cannot be undone
Closes https://gitlab.gnome.org/GNOME/evolution/issues/275
2019-01-10 12:32:33 +01:00
Milan Crha 49aa88030a Bug 769396 - Quoted Reply with Template
Closes https://bugzilla.gnome.org/show_bug.cgi?id=769396
2018-11-09 10:34:10 +01:00
Milan Crha d05368a048 I#187 - [Composer] Disable useless spell check update
Closes https://gitlab.gnome.org/GNOME/evolution/issues/187
2018-10-23 14:27:28 +02:00
Milan Crha 804b526d11 I#66 - "Inherit theme colors in HTML format" is always visually enabled in composer
Closes https://gitlab.gnome.org/GNOME/evolution/issues/66
2018-09-18 09:45:51 +02:00
Milan Crha 0cda38d587 I#107 - Reply with selection and URL can produce extra letters ][
Extend the change for tabs, which are replaced with <span> and as such
can be considered part of the URL, which breaks the URL lookup.

Related to https://gitlab.gnome.org/GNOME/evolution/issues/107
2018-09-12 12:11:32 +02:00
Milan Crha 7653977d10 I#104 - Replacing a string with nothing does not work in composer
Closes https://gitlab.gnome.org/GNOME/evolution/issues/104
2018-09-05 14:25:00 +02:00
Milan Crha c5229a556c I#107 - Reply with selection and URL can produce extra letters
Closes https://gitlab.gnome.org/GNOME/evolution/issues/107
2018-09-05 11:19:52 +02:00
Milan Crha 8794abbc99 Bug 750636 - Wrapped line should not start with a space ][
Missed a case when the wrapped text is an anchor.

Closes https://bugzilla.gnome.org/show_bug.cgi?id=750636
2018-09-04 18:33:40 +02:00
Milan Crha b33be1ca7a I#103 - Extra new line added in front of long URLs
Closes https://gitlab.gnome.org/GNOME/evolution/issues/103
2018-09-03 15:05:42 +02:00
Milan Crha 0585872786 I#86 - Quoting of plain text mail into HTML mode mangles deeper levels
Closes https://gitlab.gnome.org/GNOME/evolution/issues/86
2018-09-03 09:47:12 +02:00
Milan Crha 11baa8518b I#46 - Old plain text signature not updated before editing
Closes https://gitlab.gnome.org/GNOME/evolution/issues/46
2018-07-25 21:10:23 +02:00
Milan Crha 3618c51ae0 I#71 - Workaround cursor movement through unbreakable anchor bug
Closes https://gitlab.gnome.org/GNOME/evolution/issues/71
2018-07-23 18:45:10 +02:00
Milan Crha f790ee8717 Fix two possible memory leaks related to message composer 2018-07-19 19:19:05 +02:00
Milan Crha 7a9d481a3f Bug 750636 - [Composer] Wrapped line should not start with a space
Closes https://bugzilla.gnome.org/show_bug.cgi?id=750636
2018-07-13 14:11:57 +02:00
Milan Crha 15bb2cb6fb Bug 757504 - [Composer] Do not wrap URLs in Plain Text mode
Closes https://bugzilla.gnome.org/show_bug.cgi?id=757504
2018-07-10 15:38:43 +02:00
Milan Crha 049eb0147d Fix few memory leaks around camel_data_wrapper_get_mime_type() 2018-06-07 14:51:28 +02:00
Milan Crha 8cdd21ae7e Bug 796294 - No LTR text direction style in composed HTML messages 2018-05-28 12:45:09 +02:00
Milan Crha f7f7e92eca Crash when making links clickable in composer 2018-05-18 08:06:38 +02:00
Milan Crha ed7add9842 Address some of the compiler and static analyzers warnings 2018-05-17 15:13:03 +02:00
Milan Crha 8df33a2da4 Bug 795108 - Trailing bracket not stripped when linkifying URL inside angle brackets 2018-04-10 16:08:28 +02:00
Milan Crha 947fd7a054 Revert message composer part of the previous commit
It caused no message body being filled when replying to a message
or such actions. There was also a runtime warning when an empty GBytes
had been passed to WebKitGTK+, thus cover that as well.
2018-04-10 14:22:42 +02:00
Milan Crha f711a79412 Bug 793583 - webkit_web_view_load_html() garbages linked CSS content 2018-04-10 11:48:38 +02:00
Milan Crha 7de2691485 Bug 794474 - Headers in forwarded message credits in opposite order (HTML) 2018-03-21 18:30:06 +01:00
Milan Crha 6d8e52201f Bug 794204 - Links in mailto: body not detected when composing in HTML 2018-03-14 15:30:55 +01:00
Milan Crha 7b8e53dd14 Bug 602612 - Add 'Alternative Reply' menu option 2018-03-12 14:29:49 +01:00
Milan Crha 49a755aa49 Fix a memory leak in e_editor_dom_process_content_to_plain_text_for_exporting()
And simplify two functions, which also use g_string_free().
2018-03-02 12:37:01 +01:00
Milan Crha 90ca22cca3 Bug 793848 - Split PRE into separate paragraphs in HTML 2018-03-02 10:28:18 +01:00
Milan Crha b8dbb033bf Bug 788589 - [Composer] Middle mouse button pastes selected text in wrong location 2018-01-29 16:21:55 +01:00
Milan Crha 20a5b39314 Indentation in plain text adds unwanted spaces around links
Indentation gap had been added in front of every text in the indented block,
which can be wrong in cases where the text is "split" by an anchor, for example
when added by magic-links. There was used wrong indentation gap in the plain
text version too (3 in UI versus 4 spaces in plain text per level).

This had been reported downstream at:
https://bugzilla.redhat.com/show_bug.cgi?id=1538775
2018-01-26 09:59:22 +01:00
Milan Crha ef55bd99d8 Bug 791291 - Composer crashes if Ctrl+\ is pressed multiple times 2018-01-03 15:49:21 +01:00
Milan Crha d93768c921 [Composer] Better care of autosave snapshot after WebKitWebProcess crash
This is related to bug 791291, but doesn't fix it, it rather makes sure that:
a) any autosave snapshot is not overwritten with empty body of the message
b) the snapshot is not deleted after "broken" composer close
c) it's offered to recover the last snapshot (if exists) on close of the composer.

This all makes sure that users will not lose all their work, only up
to one minute of time, which is the interval of the autosave.
2017-12-07 18:29:38 +01:00
Milan Crha e9e5c2106d Bug 790632 - Option to visually wrap long lines in composer 2017-12-04 17:02:42 +01:00
Milan Crha a0eec64152 Bug 788829 - Busy loop when wrapping Reply quoted text 2017-10-11 20:05:07 +02:00