Commit Graph

40568 Commits

Author SHA1 Message Date
a331e7edfc Bug 733954 - Enter doesn't delete selection with cited text
The problem was that we were manipulating with the selection before the
WebKit Editor call (and we hit again problems with selections in
WebKit). So as a fix we reworked how the new line is inserted when the
enter is pressed on empty line in quoted content (and completely avoid
the WebKit Editor call there).
2014-07-31 11:06:47 +02:00
8403aa01a4 doap category apps 2014-07-30 17:22:21 +02:00
cf585bbccd Bug 733956 - Multiple quotations should be deleted by one 2014-07-30 14:36:03 +02:00
0ffb259cf8 EHTMLEditorView - Wrap just paragraphs that are not in the quoted content
Paragraphs in the quoted content are already wrapped, so we were just
waisting the time there.
2014-07-30 12:59:54 +02:00
14446c79e8 Bug 733953 - Citation marks incorrectly transformed on send
Insert the new line characters on empty lines in quoted content. Also
insert the NL when the BR element that is used for wrapping is
processed.
2014-07-30 12:59:54 +02:00
91c1a679ba Include 'tests' folder in the distribution tarball
Without that build with configure option --enable-installed-tests fails.
2014-07-30 11:16:22 +02:00
ffb24a97f7 EHTMLEditorSpellCheckDialog - Avoid crash when no iter was set in the dictionaries combo box 2014-07-29 15:10:19 +02:00
0cbe54fcff EHTMLEditorActions - Allow the action that shows the spell check dialog 2014-07-29 15:08:06 +02:00
37066f4bf5 EHTMLEditor - Fix indentation after EEditor -> EHTMLEditor rename 2014-07-29 14:03:22 +02:00
37393c0da9 Propagate settings from Prefences to the EHTMLEditorView
Namely "Use the same fonts as other applications", "Standard Font",
"Fixed Width Font", "Highlight quotations with color", "Automatically
insert emoticon images" and "Check spelling while I type". Also remove
unneded properties from EWebView.
2014-07-29 14:03:22 +02:00
b6d99e982e e_client_cache_get_client: Fix a memory leak 2014-07-29 12:24:28 +02:00
cd2b97230e Bug 733846 - Empty lines removed on send (quoted text edited)
Fix handling on new line characters after the citation end and in epmty
blocks.
2014-07-29 10:42:57 +02:00
7270148cae Bug 733725 - Runtime critical when pasting test from the same composer instance
Fix the warnings and also fix the wrong structure of the composer
content when we were pasting multiline content into the composer.
2014-07-28 18:37:16 +02:00
2d9a406dc8 EHTMLEditorView - Avoid wrapping of the preformatted block when it is inside the quoted text 2014-07-28 18:37:16 +02:00
edc4517cac EHTMLEditorView - Avoid forcing of the spell check when the body has no children 2014-07-28 18:37:16 +02:00
d70120c774 Bug 733825 - Busy loop/deadlock when changing paragraph style in quoted part
We have to insert the text node that marks the end of the block on
right position.
2014-07-28 18:37:16 +02:00
b209664795 e_mail_folder_uri_build: Encode special characters in folder names
Some of them could cause failures during folder open, while they
are supported by the server as such.
2014-07-28 11:29:17 +02:00
b37785366c Post-release version bump 2014-07-28 07:58:55 +02:00
1e289b0785 NEWS update for 3.13.4 2014-07-28 07:58:04 +02:00
12d64c8504 Bug 733010 - Cannot split quotation after an empty line
We have to manually move the selection after the element with empty
line. Afterwards WebKit creates the new line in the quoted content
correctly, but it duplicates the node with empty line, so we have to
remove it.
2014-07-22 15:31:26 +02:00
86474af102 EHTMLEditorView - Select the right node for processing after the new line was inserted into the quoted content 2014-07-22 15:30:28 +02:00
1e50111cf8 Bug 733477 - Paste can select following text
When pasting the content that was copied from the composer, WebKit
restores the selection wrongly, thus is saved wrongly and we have
to fix it.
2014-07-22 09:53:14 +02:00
b3e10763ba EHTMLEditorView - Don't put unnecessary new lines in the quoted content when generating the plain text version of the message 2014-07-21 17:02:08 +02:00
85ceca17e6 EHTMLEditorView - When the link has non-breaking space in the prefix skip it 2014-07-21 17:02:08 +02:00
5a0dd1368e EHTMLEditorView - Don't put quote characters after the anchor when it is in the middle of the quoted text 2014-07-21 17:02:08 +02:00
bcbd85f987 EHTMLEditorView - Wrap and quote just the first block after newly inserted line into the citation
Previously, the whole blockquote that was created after the newly
inserted line was wrapped and quoted. Now just the first block is
processed. Also rewrap the content as when enter was pressed in the
middle of the paragraph the line ends wouldn't match the character
count for word wrap.
2014-07-21 17:02:08 +02:00
5c08e29812 EHTMLEditorSelection - Avoid runtime warning when trying to cast DOMText to DOMElement 2014-07-21 17:02:08 +02:00
1de2564ea0 Calendar View: Use smaller icons in the Search bar
The icons at the search bar, to search forward, backward and stop
searching were too large, which didn't look good. This makes them
smaller, though even here can be seen a little gap around
the images in the buttons which might not be there ideally.
2014-07-21 16:17:43 +02:00
8d2e1340cf e_day_view_show_popup_menu: Avoid runtime warning from tooltip_get_view_event
The e_day_view_show_popup_menu() can be called with event_num = -1,
which is when the mouse doesn't hover above any event. The function
tooltip_get_view_event() claims a runtime warning in this case, thus
avoid it by properly testing the passed-in value.
2014-07-21 15:53:32 +02:00
fc55dedaf1 Always use selected color for selected region in EDayView
It used focused or unfocused selected color, but the EDayView itself
is not focused at all, it's main_item->parent.canvas instead. Instead
of trying to hunt for this (and updates when the focused widget changes)
just use the same selected color unconditionally, just the way the other
views do it.
2014-07-21 15:45:48 +02:00
45cc08a6be EHTMLEditorView - When writing into the citation rewrap and requote just when it is necessary 2014-07-21 14:17:19 +02:00
f1ffa7d223 EHTMLEditorView - Speed up quoting of the block that was wrapped
Instead of going through the whole block just insert the quote
characters on the beginning of each line (marker by BR element).
2014-07-21 14:17:19 +02:00
73613b76cd EHTMLEditorSelection - Optimalize the e_html_editor_selection_restore
When the selection was not lost or changed between its save or restore,
just remove the selection markers.
2014-07-21 14:17:19 +02:00
61d338d55d EHTMLEditorSelection - When wrapping the paragraph wrap just the text that is after the caret
The text before the caret is alredy wrapped so we don't have to rewrap
it again.
2014-07-21 14:17:19 +02:00
7d5392d49b EHTMLEditor - Fix e_html_editor_view_force_spell_check_for_current_paragraph and use it where possible
Save the end node that we are using to mark the end of the paragraph
into the right place to avoid the busy loop.
Use e_html_editor_selection_save/restore to avoid lose of selection.
2014-07-21 14:17:19 +02:00
9de43b4e73 EHTMLEditorView - Move the paragraph from citation into the body only when the backspace is pressed in the beginning of it 2014-07-21 14:17:19 +02:00
bcc3a1c7e6 Add missing chain-up-s to parent's constructed() method
Plus a little code cleanup for easier grepping.
2014-07-17 12:46:38 +02:00
968a7477c7 Bug 732892 - Scale-down contact images in message preview
Set the maximal width and height of the contact image to 96 px. Also do
the same in the contact preview in addressbook.
2014-07-16 10:56:56 +02:00
65e0752357 Images in contact preview are not shown with webkitgtk3 2.4.x
We have to unescape the image uri when running with webkitgtk3 2.4.x
and not just in versions prior to 2.2.x
2014-07-16 10:46:43 +02:00
930a4dffa7 Bug 733000 - Splitting quoted part changes clipboard content
Temporarily remove the HTML input event listener from the body element to avoid
unwanted modification of the clipboard content. In callback we are
selecting all the content in composer (badically Ctrl + A) that's
modifying the clipboard content.
2014-07-15 15:09:12 +02:00
6f70081c52 EHTMLEditorView - Don't leak dom-evo-draft outside evolution 2014-07-15 14:20:51 +02:00
d3dde016fd Bug 733140 - Backspace removes too much when editing quotation
We have to ask for the previous sibling of element that marks the selection
start instead of the end.
2014-07-15 13:59:36 +02:00
77a03ce282 EHTMLEditorSelection - Avoid runtime warning when there is no selection or the whole body element is selected 2014-07-15 13:54:30 +02:00
6f7e23e645 EHTMLEditorView - Replace the Tab characters in the text nodes just when generating the plain text version of the message 2014-07-15 11:53:37 +02:00
10af33d5ef EHTMLEditorView - Remove our attributes from blockquotes when generating the HTML version of the message 2014-07-15 11:10:00 +02:00
8939217f8d EHTMLEditor - Fix indent/undent of the block 2014-07-15 11:10:00 +02:00
bf860b3f99 Bug 732608 - Composer paste issues
We have to treat the pasting into the normal and the quoted
content separately. We have to also correctly process the new lines on
the beginning/end of the pasted content to avoid their lose.
2014-07-15 11:10:00 +02:00
127d946dff EHTMLEditorView - Don't lose the empty lines when converting HTML to plain text
Namely don't lose the new line on the beginning or on the end of
processed content and also on the lines with zero width space character.
2014-07-15 11:10:00 +02:00
12be2b0114 EHTMLEditorView - Introduce functions to register/remove the HTML "input" event on body
There are some cases that we want to avoid the call of the callback
(performance reasons and the avoidance of the unwanted modifications of
the composer content).
2014-07-15 11:10:00 +02:00
de832c906f EHTMLEditorView - Save selection instead of just caret position when forcing the spell check 2014-07-15 11:10:00 +02:00