aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
Commit message (Collapse)AuthorAgeFilesLines
* Replace the webkit_dom_node_get_node_type function with equivalent macrosTomas Popela2014-09-122-4/+4
|
* ECalendarItem: Fix a memory leakMilan Crha2014-09-111-0/+1
|
* EHTMLEditorView - Don't try to fix the HTML structure after pasting when it ↵Tomas Popela2014-09-111-0/+2
| | | | is not needed
* EHTMLEditorView - Fix the leaks of the node content inside the ↵Tomas Popela2014-09-101-4/+2
| | | | process_elements function
* EHTMLEditorView - Save the text that can be written inside the tabulator wrapperTomas Popela2014-09-101-0/+4
| | | | | | | It can happen sometimes that the text can be written inside the tabulator wrapper. So when this happens append the text into the plain text version of the message (in the HTML version it already is) and don't throw it away.
* Miscellaneous Win32 related changesMilan Crha2014-09-061-0/+10
| | | | | | | | * use e_util_win32_initialize() in main() to avoid code duplication * e-spinner - correct image path build under win32 * export WIN32_SERVICELIBEXECDIR when building eds, which relies on it now * update D-Bus patch and session-local.conf creation, thus D-Bus can actually autostart services
* EHTMLEditorView - Fix the HTML structure after the selected text inside the ↵Tomas Popela2014-09-051-0/+96
| | | | quoted content is deleted
* EHTMLEditor - Use get_parent_block_node_from_child where possibleTomas Popela2014-09-052-43/+42
| | | | | | This will ensure that the right node (the block node) will be returned when the selection is saved inside the bold/italic/underlined text or inside the anchor.
* EHTMLEditorView - Avoid extra new line when quoting the textTomas Popela2014-09-051-1/+6
| | | | | Don't insert the unnecessary BR element before the BR element that is used for wrapping as it will end in unnecessary new line.
* EHTMLEditorSelection - Disable the selection-changed callback when restoring ↵Tomas Popela2014-09-051-0/+5
| | | | the caret position
* EHTMLEditorSelection - Avoid the runtime warning when the caret was saved ↵Tomas Popela2014-09-051-1/+2
| | | | | | outside of the body This could happen during the HTML -> plain text conversion.
* Bug 707647 - gnome-autoar integration in attachmentsTing-Wei Lan2014-09-034-81/+657
|
* EHTMLEditorView - Correctly remove all child nodes from the HEAD elementTomas Popela2014-08-271-2/+2
| | | | To avoid the critical warnings printed in the console.
* Fix handling of the selection in the composer when saving the message draftTomas Popela2014-08-273-44/+49
| | | | | | | When saving the draft don't lose the active selection in the web view. Also restore the selection when the draft is again opened. Also fix the situations when the spell check was not activated when the composer was opened.
* When changing the composer mode from HTML to Plain Text avoid reloading of ↵Tomas Popela2014-08-271-28/+35
| | | | | | the web view Also preserve the selection (if it is possible) when changing the mode.
* EWebView - If the parent of the node that we want to remove doesn't exist, ↵Tomas Popela2014-08-171-2/+9
| | | | just free it
* EHTMLEditorView - Avoid critical warnings when pressing backspace on the ↵Tomas Popela2014-08-171-19/+23
| | | | beginning of the quoted content
* EHTMLEditorView - Remove classes that were used for marking the BR elements ↵Tomas Popela2014-08-151-0/+7
| | | | from converted text
* EHTMLEditorSelection - Simplify some loops and free more of the WebKit DOM ↵Tomas Popela2014-08-141-48/+25
| | | | variables
* EHTMLEditorView - Fix changing of the format from the list to the Address ↵Tomas Popela2014-08-141-7/+6
| | | | and Heading 1 - 6 formats
* EHTMLEditor - Change the way how the Indent/Unindent and Alignment worksTomas Popela2014-08-142-89/+157
| | | | | | | | | | Before this change the indent was done with BLOCKQUOTE element. But the BLOCKQUOTE elements have marings around them set by the HTML engine. For composer we can override them, but when someone will receive that HTML message he will have unwanted margin around them. To solve this we will use the DIV elements instead. Also for the alignment we switched away from WebKit Editor, but we are doing it ourselves.
* EHTMLEditorView - Unset the bold font when the return is pressed in the ↵Tomas Popela2014-08-141-0/+9
| | | | | | | | Heading 1 - 6 block When the return is pressed in a H1-6 element, WebKit doesn't continue with the same element, but creates normal paragraph, so we have to unset the bold font, otherwise the UI will report that we are still writing in bold.
* EHTMLEditorView - Fix critical warning when creating Address and Header 1 - ↵Tomas Popela2014-08-141-1/+3
| | | | 6 blocks
* EHTMLEditorView - Process the plain text version the right way when sending ↵Tomas Popela2014-08-071-4/+7
| | | | the HTML mail
* EHTMLEditorView - Remove the unneeded commentTomas Popela2014-08-071-1/+0
|
* EHTMLEditorView - Turn on the spell check if the inline spelling option is setTomas Popela2014-08-071-1/+3
| | | | | Otherwise the spell check is not forced when the message is loaded into the composer.
* EHTMLEditorSelection - Remove just the BR elements that are used for the ↵Tomas Popela2014-08-071-2/+6
| | | | wrapping unless it is forced
* EHTMLEditorSelection - Limit the paragraph minimal width to 5 charactersTomas Popela2014-08-071-3/+6
|
* EHTMLEditorSelection - Fix the unindentation of the listTomas Popela2014-08-071-5/+12
|
* EHTMLEditorSelection - Fix the spell check after settings alignmentTomas Popela2014-08-071-0/+1
|
* Reduce the memory used by DOM variablesTomas Popela2014-08-075-9/+75
| | | | | Free some of the DOM variables when they are not needed, before they are automatically freed when the frame is destroyed
* Bug 733973 - Calling e_html_editor_view_get_text_html() changes editors contentTomas Popela2014-08-011-5/+7
| | | | | Do all the changes (remove the ids, classes, ... used internally by composer) on the BODY clone instead of doing them on real BODY.
* EHTMLEditorView - Fix the HTML structure after pasting the multiline content ↵Tomas Popela2014-08-011-22/+36
| | | | that was copied from composer
* Bug 733918 - Color chooser for citation color is not working in Composer ][Milan Crha2014-08-011-2/+4
| | | | May remember the previous function only once, to not end in a recursion.
* Bug 733918 - Color chooser for citation color is not working in ComposerMilan Crha2014-08-011-4/+15
|
* EHTMLEditorSelection - Introduce e_html_editor_selection_is_collapsed and ↵Tomas Popela2014-07-313-7/+31
| | | | | | | use it where possible Before we were comparing the selection text to look if the selection is collapsed. Use webkit_dom_range_get_collapsed instead.
* EHTMLEditorView - Don't insert the new line character, when the empty line ↵Tomas Popela2014-07-311-3/+5
| | | | in the quoted content is on the end of it
* Bug 733954 - Enter doesn't delete selection with cited textTomas Popela2014-07-311-48/+83
| | | | | | | | 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).
* Bug 733956 - Multiple quotations should be deleted by oneTomas Popela2014-07-301-34/+117
|
* EHTMLEditorView - Wrap just paragraphs that are not in the quoted contentTomas Popela2014-07-301-5/+6
| | | | | Paragraphs in the quoted content are already wrapped, so we were just waisting the time there.
* Bug 733953 - Citation marks incorrectly transformed on sendTomas Popela2014-07-301-0/+15
| | | | | | 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.
* EHTMLEditorSpellCheckDialog - Avoid crash when no iter was set in the ↵Tomas Popela2014-07-291-6/+7
| | | | dictionaries combo box
* EHTMLEditorActions - Allow the action that shows the spell check dialogTomas Popela2014-07-291-1/+0
|
* EHTMLEditor - Fix indentation after EEditor -> EHTMLEditor renameTomas Popela2014-07-291-20/+20
|
* Propagate settings from Prefences to the EHTMLEditorViewTomas Popela2014-07-292-194/+72
| | | | | | | 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.
* e_client_cache_get_client: Fix a memory leakMilan Crha2014-07-291-0/+2
|
* Bug 733846 - Empty lines removed on send (quoted text edited)Tomas Popela2014-07-291-14/+14
| | | | | Fix handling on new line characters after the citation end and in epmty blocks.
* Bug 733725 - Runtime critical when pasting test from the same composer instanceTomas Popela2014-07-291-21/+51
| | | | | Fix the warnings and also fix the wrong structure of the composer content when we were pasting multiline content into the composer.
* EHTMLEditorView - Avoid wrapping of the preformatted block when it is inside ↵Tomas Popela2014-07-291-1/+1
| | | | the quoted text
* EHTMLEditorView - Avoid forcing of the spell check when the body has no childrenTomas Popela2014-07-291-0/+3
|
* Bug 733825 - Busy loop/deadlock when changing paragraph style in quoted partTomas Popela2014-07-291-14/+21
| | | | | We have to insert the text node that marks the end of the block on right position.
* Bug 733010 - Cannot split quotation after an empty lineTomas Popela2014-07-221-24/+99
| | | | | | | 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.
* EHTMLEditorView - Select the right node for processing after the new line ↵Tomas Popela2014-07-221-2/+5
| | | | was inserted into the quoted content
* Bug 733477 - Paste can select following textTomas Popela2014-07-221-0/+17
| | | | | | 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.
* EHTMLEditorView - Don't put unnecessary new lines in the quoted content when ↵Tomas Popela2014-07-211-14/+31
| | | | generating the plain text version of the message
* EHTMLEditorView - When the link has non-breaking space in the prefix skip itTomas Popela2014-07-211-10/+13
|
* EHTMLEditorView - Don't put quote characters after the anchor when it is in ↵Tomas Popela2014-07-211-3/+7
| | | | the middle of the quoted text
* EHTMLEditorView - Wrap and quote just the first block after newly inserted ↵Tomas Popela2014-07-211-58/+74
| | | | | | | | | | 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.
* EHTMLEditorSelection - Avoid runtime warning when trying to cast DOMText to ↵Tomas Popela2014-07-211-7/+9
| | | | DOMElement
* EHTMLEditorView - When writing into the citation rewrap and requote just ↵Tomas Popela2014-07-211-1/+7
| | | | when it is necessary
* EHTMLEditorView - Speed up quoting of the block that was wrappedTomas Popela2014-07-211-29/+72
| | | | | Instead of going through the whole block just insert the quote characters on the beginning of each line (marker by BR element).
* EHTMLEditorSelection - Optimalize the e_html_editor_selection_restoreTomas Popela2014-07-211-179/+198
| | | | | When the selection was not lost or changed between its save or restore, just remove the selection markers.
* EHTMLEditorSelection - When wrapping the paragraph wrap just the text that ↵Tomas Popela2014-07-211-24/+63
| | | | | | | is after the caret The text before the caret is alredy wrapped so we don't have to rewrap it again.
* EHTMLEditor - Fix e_html_editor_view_force_spell_check_for_current_paragraph ↵Tomas Popela2014-07-212-15/+32
| | | | | | | | 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.
* EHTMLEditorView - Move the paragraph from citation into the body only when ↵Tomas Popela2014-07-211-0/+4
| | | | the backspace is pressed in the beginning of it
* Add missing chain-up-s to parent's constructed() methodMilan Crha2014-07-1720-25/+36
| | | | Plus a little code cleanup for easier grepping.
* Bug 733000 - Splitting quoted part changes clipboard contentTomas Popela2014-07-151-1/+3
| | | | | | | 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.
* EHTMLEditorView - Don't leak dom-evo-draft outside evolutionYanko Kaneti2014-07-151-0/+1
|
* Bug 733140 - Backspace removes too much when editing quotationTomas Popela2014-07-151-1/+1
| | | | | We have to ask for the previous sibling of element that marks the selection start instead of the end.
* EHTMLEditorSelection - Avoid runtime warning when there is no selection or ↵Tomas Popela2014-07-151-0/+4
| | | | the whole body element is selected
* EHTMLEditorView - Replace the Tab characters in the text nodes just when ↵Tomas Popela2014-07-151-25/+27
| | | | generating the plain text version of the message
* EHTMLEditorView - Remove our attributes from blockquotes when generating the ↵Tomas Popela2014-07-151-0/+2
| | | | HTML version of the message
* EHTMLEditor - Fix indent/undent of the blockTomas Popela2014-07-152-156/+227
|
* Bug 732608 - Composer paste issuesTomas Popela2014-07-152-53/+301
| | | | | | 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.
* EHTMLEditorView - Don't lose the empty lines when converting HTML to plain textTomas Popela2014-07-151-2/+25
| | | | | 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.
* EHTMLEditorView - Introduce functions to register/remove the HTML "input" ↵Tomas Popela2014-07-151-12/+46
| | | | | | | | 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).
* EHTMLEditorView - Save selection instead of just caret position when forcing ↵Tomas Popela2014-07-152-44/+38
| | | | the spell check
* EHTMLEditorSelection - Rework how the collapsed selection is savedTomas Popela2014-07-151-27/+133
| | | | Also fixes the leakage of EHTMLEditorView is some code paths.
* Incorrect text color for selected cells in ETree/ETableMilan Crha2014-07-111-2/+2
| | | | | The text color was used reverted, focused color for unfocused widget and vice versa, producing incorrect drawing and a text hard to read.
* Bug 722068 - Make Evolution build under Win32Milan Crha2014-07-114-22/+17
| | | | | This also makes gnome-desktop an optional dependency, which can be avoided with --disable-gnome-desktop configure option.
* Remove usages of deprecated gtk_widget_ensure_style()Milan Crha2014-07-104-7/+0
|
* Bug 732891 - Crash under process_elements() at e-html-editor-view.c:5004Tomas Popela2014-07-101-9/+15
| | | | | Check if the buffer already contains some data before doing some work on it.
* Bug 732747 - alloca.h in e-util/e-color-combo.c is not neededMilan Crha2014-07-081-1/+0
|
* Replace GtkStyle usages with GtkStyleContextMilan Crha2014-07-0727-400/+730
| | | | | | | | | | | | | | This makes evolution depend on theme-defined named colors, namely: theme_bg_color theme_base_color theme_fg_color theme_text_color theme_selected_bg_color theme_selected_fg_color theme_unfocused_selected_bg_color theme_unfocused_selected_fg_color If it's not defined, then a fallback color is used, in the worse case one of the fallbacks defined in evolution itself.
* EHTMLEditorView - Fix reply to messageTomas Popela2014-07-031-3/+1
| | | | | | After commit 8a004f3e we are finally sure that the text that is passed into e_html_editor_view_set_text_html function has always the HTML content, so don't try to treat it as plain text.
* Bug 732609 - Cannot decrease indentationTomas Popela2014-07-021-225/+407
| | | | | Don't use WebKit indent/unindent commands. Make our indentation/undentation code (that was used when there was no selection) selection aware.
* When setting some content into the composer body we have to specify if it is ↵Tomas Popela2014-07-011-3/+12
| | | | | | | | | a HTML content Code paths for HTML content and plain text content are different. When we will try to load plain text content as a HTML content we will lose the new line characters. In the opposite case when HTML content is load as a plain text at least the whole structure is lost.
* EHTMLEditorView - Create new paragraph in body if body is empty and save ↵Tomas Popela2014-07-011-0/+8
| | | | caret there
* EHTMLEditorSelection - Try to move with the caret only when it is possible ↵Tomas Popela2014-07-011-0/+2
| | | | to save it
* EHTMLEditorView - Fix quoting of the lines with anchorsTomas Popela2014-06-301-7/+4
| | | | | Remove bogus new line character insertion and don't quote the anchor element if it has caret/selection inside.
* EHTMLEditorView - Refactor the code that triggers the surround of links with ↵Tomas Popela2014-06-301-6/+9
| | | | | | anchor elements And add www to patterns.
* EHTMLEditorView - Correctly replace tabulators with spacesTomas Popela2014-06-301-18/+96
| | | | | Don't replace them with 8 spaces, but count the right amount of spaces to relace the tab character with.
* EHTMLEditorSelection - Fix wrapping of the anchor elementsTomas Popela2014-06-301-1/+11
| | | | | When there is a whitespace after the link leave it after the link and don't try to wrap before it.
* Bug 731416 - [webkit-composer] Busy-loop when replying to an emailTomas Popela2014-06-301-1/+6
| | | | | | When wrapping lines with really long words (more that is defined in Composer settings) the maximal length for wrap could be less than zero. For proper functionality we have to set it to the right value.
* EHTMLEditorSelection - Correctly find the element's parent node when ↵Tomas Popela2014-06-301-19/+46
| | | | changing the block's format
* EHTMLEditorSelection - When removing the elements use by composer for quoted ↵Tomas Popela2014-06-301-0/+6
| | | | content remove all of them
* EHTMLEditorSelection - Fix detection of the paragraph format inside the ↵Tomas Popela2014-06-301-18/+11
| | | | quoted content
* Bug 732180 - Excessive CPU usage due to GtkSpinnerMilan Crha2014-06-276-10/+338
| | | | | Let's use our own spinner-like widget, which doesn't need as that much of CPU as GtkSpinner.
* Reply to selection in text-highlight part loses white-spacesMilan Crha2014-06-271-1/+33
| | | | | | | | | | text-highlight module encloses the generated text into <pre/> tags, thus the preview panel shows white-spaces correctly, but once a reply is done to a selected text the returned HTML portion had missing <pre/> tags, which led to lose of the white-spaces in the generated content (in UI), while the white-spaces were there in the raw HTML code. Enclosing selected HTML portion into <pre/> tags in case the original text is also enclosed it them fixes it.
* EHTMLEditorView - Fix clipboard paste into quoted contentTomas Popela2014-06-251-628/+665
| | | | | When pasting the text from clipboard into the quoted content in the composer paste it into it and not into the body.
* EHTMLEditorActions - Hide HTML actions in plain text mode instead of making ↵Tomas Popela2014-06-251-1/+1
| | | | them insensitible
* Bug 731508 - [webkit-composer] no option to paste as text (without formatting)Tomas Popela2014-06-256-3/+88
|
* Bug 732202 - [webkit-composer] Paste scrolls viewTomas Popela2014-06-251-1/+24
| | | | | We have to check if the caret is inside the viewport when we are trying to scroll to it. If it is in the viewport we won't scroll.
* Bug 731507 - [webkit-composer] paste does not work, shift-ins or CTRL-V worksTomas Popela2014-06-251-11/+9
| | | | | | | Together with previous commit that removes the usage of deprecated gtk-stock items and unregistering the Ctrl+v shorcut this solves the issue. When the action is triggered and WebView doesn't have focus we have to focus it to insert the clipboard content there.
* EHTMLEditor - Stop using deprecated gtk-stock itemsTomas Popela2014-06-2511-77/+65
|
* EHTMLEditorView - Process the element only if it has childrenTomas Popela2014-06-251-11/+12
|
* EHTMLEditorView - Preserve empty lines when processing the text in convertorTomas Popela2014-06-251-3/+7
| | | | | Also insert the BR elements instead of the non-breaking space as a content to empty paragraphs to avoid unwanted character there.
* EHTMLEditorView - Preserve spaces and create anchors for the links in the ↵Tomas Popela2014-06-241-14/+36
| | | | text after the last BR element
* Drop the last references to GtkHTMLMilan Crha2014-06-241-3/+1
| | | | | | | There still left some references to GtkHTML in the "active code", which should be dropped. There still can be found couple "GtkHTML" strings in the code, but mostly in disabled code or comments only. These are to be fixed separately.
* EHTMLEditor - Process text in convertor when pasting plain text from clipboardTomas Popela2014-06-233-6/+16
|
* EHTMLEditorView - Insert quote symbols before HTML element when it has no ↵Tomas Popela2014-06-231-0/+4
| | | | | | | previous sibling This fixes the situation when the paragraphs with just i.e. anchor were not properly quoted.
* EHTMLEditorView - Replace 2+ spaces with non-breaking spaces and create ↵Tomas Popela2014-06-231-8/+106
| | | | | | | | | | | | | anchors for links when processing data from convertor When converting text we want to preserve spaces from original text. For this we have to use the non-breaking spaces for it as two and more normal spaces is WebKit replacing with just one. But we want the text from convertor to be wrapped (non-breaking space is preventing from it) so we will replace 2+ spaces with non-breaking spaces and leave the space of length one as it is. Also when we are going through the text from the convertor we will surround the links with anchor element to make them clickable.
* EHTMLEditorView - Generate new line into plain text version even when ↵Tomas Popela2014-06-231-0/+3
| | | | paragraph has no children
* Bug 731872 - EWebView: Use named colors from themesSebastian Keller2014-06-231-20/+20
|
* EHTMLEditorView - Improve the writing into quoted contentTomas Popela2014-06-191-77/+341
| | | | | | | | After this change when we start writing into quoted content it will automatically rewrap the paragraph and reinserts the quote marks if the block format is set to Normal. Also when the caret is in the beginning of the quoted line and BackSpace is pressed the quoted content is tooked out from the quote and inserted into body.
* EHTMLEditorView - When quoting the elements correctly skip the selection markersTomas Popela2014-06-191-3/+28
|
* Bug 731766 - [webkit-composer] Emoticon cannot be inserted at the end of the ↵Tomas Popela2014-06-191-40/+137
| | | | | | | | | | email Rework how the emoticons are inserted into composer. There were certain situations where the previous version failed from various reasons like wrongly saved caret position. Together with previous commits (preventing the selection markers to be saved into body) this change fixes the insertion of emoticons.
* EHTMLEditor - Make functions that remove quote and wrap elements publicTomas Popela2014-06-193-44/+21
| | | | Use them whenever it's possible and remove their duplicates from EHTMLEditorView.
* EHTMLEditorSelection - Fix caret position when changing block formatTomas Popela2014-06-191-0/+14
|
* EHTMLEditorSelection - Don't try to save selection markers straight into bodyTomas Popela2014-06-191-0/+72
| | | | | | This caused unpredictable behavior in functions, which relies on the position of caret/selection. We won't save the selection markers and handle the situation (no selection markers) in those functions.
* EHTMLEditorSelection - When changing the format of block set EHTMLEditorView ↵Tomas Popela2014-06-191-0/+2
| | | | as changed
* EHTMLEditorView - Activate inline image resize just when hovering over imageTomas Popela2014-06-191-8/+2
| | | | | When we will leave the CSS "display: inline-block" on inline images they will break the caret move with Home/End keys.
* EHTMLEditor - When setting the body background image set it as its base64 ↵Tomas Popela2014-06-183-13/+26
| | | | data instead of uri
* Bug 731767 - [webkit-composer] Inline images not attached to the emailTomas Popela2014-06-171-36/+26
| | | | Change image's source value immediately after creating the Camel part for it.
* Crash in client_selector_allow_auth_prompt_done_cb() on errorMilan Crha2014-06-171-2/+1
| | | | | | Actually, g_simple_async_result_take_error() means take, not copy, thus the later g_clear_error() was incorrect, possibly freeing already freed memory.
* Bug 702703 - Be able to overwrite domain in Message IDsMilan Crha2014-06-172-6/+9
|
* EHTMLEditor: Move remove_node and remove_node_if_empty to EWebViewTomas Popela2014-06-164-150/+75
| | | | And use them in EHTMLEditorView if possible.
* EHTMLEditorView: Remove unused functionTomas Popela2014-06-161-21/+0
|
* EHTMLEditor - Fix block format change with selection in quoted contentTomas Popela2014-06-132-33/+66
|
* EHTMLEditorView - When changing from html to plain text mode adjust ↵Tomas Popela2014-06-131-8/+11
| | | | | | composer's content Apply width limits to paragraphs, remove images and replace smileys with its text version.
* Bug 731551 - [webkit-composer] Whitespace lost on message reply (plain text)Tomas Popela2014-06-131-1/+18
| | | | | | Replace whitespace with non breaking space (&nbsp;) to avoid its lost. Also when generating the plain text version of final message replace non breaking space with normal space.
* EWebView - Check if the link has fragmentTomas Popela2014-06-131-1/+1
| | | | Some links doesn't have the framegment so check for it before accessing it.
* EHTMLEditorSelection - Return the format of list that we determined for ↵Tomas Popela2014-06-131-1/+3
| | | | ordered list
* EClientSelector: Do not check connection for empty or "localhost" hostMilan Crha2014-06-131-1/+1
| | | | Related to bug 731585
* Check whether value really changed in callbacks of GSettings::changed signalMilan Crha2014-06-121-6/+37
| | | | | Just two more places, which are new after a merge of the webkit-composer branch changes.
* EHTMLEditor: Set right width to paragraphs that are quotedTomas Popela2014-06-112-6/+5
|
* EHTMLEditorView: Introduce is_return_key and use it where possibleTomas Popela2014-06-111-20/+14
|
* EHTMLEditorView: Rename quote_character class to -x-evo-quote-characterTomas Popela2014-06-111-16/+16
|
* EHTMLEditor: Fix various bugs in block in/undentTomas Popela2014-06-102-14/+24
| | | | | | Fix the wrong position of caret when in/undenting empty block and don't lose spell checked words when in/undenting. Also don't insert unnecessary empty lines into plain text version of message when processing indented block.
* EHTMLEditorView: Skip BR on the end of HTML that's parsed into paragraphsTomas Popela2014-06-101-1/+1
| | | | Do that to avoid unnecessary empty paragraph element.
* EHTMLEditorView: Replace Tab character with 8 spaces instead of 4Tomas Popela2014-06-101-3/+3
|
* Bug 731416 - [webkit-composer] Busy-loop when replying to an emailTomas Popela2014-06-101-1/+4
| | | | | Don't try to wrap words that are longer than defined word wrap length, otherwise we will end in busy loop.
* Bug 540362: [webkit-composer] Use webkit for composerTomas Popela2014-06-0976-2968/+29457
| | | | Merge wip/webkit-composer branch into master.
* Bug 668006 - Crash when dragging column headers of Tasks listMilan Crha2014-06-061-8/+7
|
* Ignore false GSettings key change notificationsMilan Crha2014-06-051-3/+34
| | | | | | | Similar to GObject::notify, the GSettings::changed can be emitted even if a key didn't change. It's up to the user (aka evolution) to test for real changes, thus let's do it. It may have certain performance positive impact too.
* Properly disconnect signal handlers added with e_signal_connect_notify*()Milan Crha2014-06-059-11/+86
| | | | | | | | | | | This is a follow-up for the previous commit, where e_signal_connect_notify*() functions had been added. Due to a different callback and user data being attached to the 'notify' signal, the g_signal_handlers_*() functions do not work properly, thus these e_signal_connect_notify*() functions need a different way for a signal handler disconnect. A side-change was done in e-settings-web-view-gtkhtml.c, checking for a real key change from GSettings.
* Ignore false GObject property change notificationsMilan Crha2014-06-0528-52/+374
| | | | | | | | | | | | | | | | | | | | | | This is related to bug 698275, which did not cover all cases. The problem here is that the dconf can in certain situation claim that everything changed (path "/" changed), which GSettingsBinding propagates to a GObject property unconditionally and GObject's property setter (g_object_set_property()) also notifies about the property change unconditionally, despite the real descendant property setter properly checks for the value change. After all these false notifications a callback on "notify" signal is called and possibly an expensive operation is run. Checking whether the value really changed helps in performance, for which were added new e-util functions: e_signal_connect_notify() e_signal_connect_notify_after() e_signal_connect_notify_swapped() e_signal_connect_notify_object() which have the same prototype as their GLib counterparts, but they allow only "notify::..." signals and they test whether the value really changed before they call the registered callback.
* Bug 729303 - Default width of Message Filters window is too smallMilan Crha2014-05-301-0/+1
|
* Bug #730199 - [MessageList] Support dates with value larger than 2^32Milan Crha2014-05-243-4/+39
|
* Bug #678843 - May re-prompt password on account re-enableMilan Crha2014-05-135-12/+184
|
* EWebView: Rework how link with fragment is detected, use SoupURI for itTomas Popela2014-05-071-7/+55
| | | | | Also when hovering over the link with fragment that points to message don't show the whole URI in status bar, but just the fragment.
* Bug #653892 - Allow to enter more than four email addressesChristian Schaarschmidt2014-05-063-40/+72
|
* EWebView: Allow navigation in page through HTML anchor elementsTomas Popela2014-05-051-3/+14
|
* EFileRequest: Fix build with additional debug messages enabledTomas Popela2014-05-051-1/+7
|
* Bug #729084 - Use tel: URI instead of callto: for phone numbersMilan Crha2014-04-304-12/+23
| | | | | | | | | This change does a bit more, actually: - learn the code of "tel" URI, being handler similar to "sip", "callto", "h323" - generate tel: URIs for phone numbers, but only if the leading character of the phone number is a plus ("+") sign - always remove spaces in href part in the e_text_to_html() when E_TEXT_TO_HTML_URL_IS_WHOLE_TEXT flag is set
* Bug 729256: Busy loop under replace_local_image_links()Tomas Popela2014-04-301-39/+28
| | | | | Rework replace_local_image_links to use CSS selectors to avoid iterating through the DOM tree.
* Bug #685323 - Provide SIP field for contactsMilan Crha2014-04-292-6/+37
|
* Fix regressions after commit fdde3339619Milan Crha2014-04-282-3/+5
| | | | | The commit fixed few memory leaks, but also caused several crashes due to those changes, thus this fixes the introduces issues.
* Fix various memory leaksMilan Crha2014-04-2510-10/+35
|
* [EActivityBar] Reset priv->timeout_id when the timeout is reachedMilan Crha2014-04-241-2/+39
| | | | | | | Since GLib begun to claim about incorrect ids being passed to g_source_remove(), a problem with EActivityBar had been discovered, it doesn't unset its priv->timeout_id when the timeout is reached, which leads to the new runtime warnings from GLib.
* Make 'Copy Link Location' copy into both primary and selection clipboardsMilan Crha2014-04-221-1/+5
| | | | | | | It used to copy the link into both buffers, same as the 'Copy Email Address" does, but it seems, after a move to WebKit based message preview, this changed and the link had been copied only to the selection clipboard. Make the function consistent and copy the link into to both clipboards.
* Bug #684425 - Do not pass NULL text to gtk_entry_set_text()Milan Crha2014-04-113-3/+98
|
* Fix few more memory leaksMilan Crha2014-04-041-1/+3
|
* e-util: Port to thread-safe ECategories APIPhilip Withnall2014-03-287-26/+39
| | | | | | | | | | | | | | This ports the following two function calls throughout Evolution: • e_categories_get_list() to e_categories_dup_list() • e_categories_get_icon_file_for() to e_categories_dup_icon_file_for() It necessarily changes some internal e-util API: • e_util_get_searchable_categories() to e_util_dup_searchable_categories() This bumps the EDS requirement to 3.13.1. https://bugzilla.gnome.org/show_bug.cgi?id=727221
* Bug #726542 - Unpadded black border on various mail account settings pagesMilan Crha2014-03-284-0/+4
|
* Fix two memory leaksMilan Crha2014-03-261-1/+1
| | | | | | | a) ETableColumnSpecification: the 'title' property is always overwritten during the spec file loading, thus no need to allocate it here b) the 'uids' are leaked on message move, because the GPtrArray is supposed to be always unreffed
* EPhotoCache: Fix a memory leakMilan Crha2014-03-251-2/+3
|
* Add an --enable-code-coverage configure option to enable gcov supportMilan Crha2014-03-251-1/+2
| | | | | When enabled, this will compile all libraries/binaries with the necessary gcc and ld flags to enable code coverage support using gcov.
* Bug #726110 - Use gtk_drag_check_threshold() instead of hard-coded valuesMilan Crha2014-03-243-10/+9
|
* Bug #710337 - Define ETree/ETable "alternating-row-colors" style propertyMilan Crha2014-03-142-2/+43
|
* EWebView/EMailDisplay: Setup custom CSS styles to DOM right after document loadsMilan Crha2014-03-131-0/+4
| | | | | | | | | | | | | The custom styles, those which are added on-the-fly directly to DOM, were added only after whole document was completely loaded, which included also sub-frames content, thus when these were slow to download for any reason, the main frame content, like the top header bar, was shown with a default style, which is white background and black text color. The WebKitWebView's document-load-finished signal is emitted whenever the actual HTML content is loaded, and the DOM is available as well, for each frame, including the main frame of the WebView, thus updating/setting custom CSS styles in this signal handler makes the loaded frames look as expected, without waiting for other frames in the document to finish their load.
* Bug #722938 - Adapt a11y code for newest gtkMike Gorse2014-03-1310-176/+50
| | | | | As of gtk+ 3.2, AtkObjectFactories are no longer used to generate accessibles for gtk widgets, so our custom atk classes need refactoring.
* Bug #711658 - Time zone for new events sometimes defaults to UTCMilan Crha2014-03-062-1/+32
|
* Bug #446659 - Message view can scroll away after message deletionMilan Crha2014-03-062-0/+21
|
* Miscellaneous cleanups.Matthew Barnes2014-03-0393-973/+1042
|
* EWebView: Limit zoom-in/zoom-out to 0.1 .. 5.0 valuesMilan Crha2014-02-281-4/+11
| | | | | It doesn't make much sense to zoom below 0.1, same as zoom 5.0 is quite large, thus no need to zoom indefinitely in both directions.
* Replace 'interface' with 'iface' in the codeTarnyko2014-02-2626-450/+450
| | | | | | Win32 headers have a #define for 'interface', which breaks the build when this word is used in the code, thus replace it to 'iface', the same way as GLib or GTK+ code use to have it. (See bug #722068.)
* ETree/ETable: Allow easier adding of columns for sortingMilan Crha2014-02-255-12/+92
| | | | | | | | | This extends behaviour of left-clicking column header which is not used for sorting yet in an ETree/ETable in a way: a) alone left-click behaves like before, all current sorting is dropped and the ETree/ETable is sorted only by that column b) left-click with pressed Ctrl key adds the column as the first to sort by c) left-click with pressed Ctrl+Shift adds the column as the last to sort by
* Add missing action captions after gtk-stock replacementMilan Crha2014-02-253-7/+7
|
* Fix few more memory leaksMilan Crha2014-02-211-0/+20
|
* Forgotten chunk from the previous commit (shortcuts from gtk-stock definitions)Milan Crha2014-02-171-1/+1
|
* Add shortcuts previously defined by gtk-stock item definitionsMilan Crha2014-02-172-8/+8
|
* e_menu_tool_action_new: Remove unused stock_id parameterMilan Crha2014-02-142-5/+3
|
* Do not use "dialog-apply" icon and make EStockRequest fool-proofMilan Crha2014-02-131-23/+26
| | | | | | | | | The "dialog-apply" icon is not from a set of standard icons, thus it cannot be used, which I overlooked yesterday. With its drop are also dropped other button icons in itip-formatter. The missing icon made EStockRequest "panic" which effectively broke page rendering for WebKit - the rendering was never finished.
* Stop using deprecated gtk-stock itemsMilan Crha2014-02-1346-224/+272
|
* Fix a runtime warning on startup.Matthew Barnes2014-02-111-2/+6
| | | | | Calling g_source_remove() on a saved source ID but not resetting the source ID to zero.
* e_table_sort_info_duplicate: Missing ref of a 'column_spec' memberMilan Crha2014-02-111-0/+17
| | | | | | Both 'groupings' and 'sortings' arrays unref the 'column_spec' on removal, but the 'duplicate' function didn't ref them, which caused use-after-free at the end of the application.
* Bug #721639 - Cannot overwrite builtin mail view definitionsMilan Crha2014-02-041-0/+10
|
* Bug #722951 - Check for empty rule valuesMilan Crha2014-01-294-3/+54
|
* Bug #721213 - Character encoding combo opened emptyMilan Crha2014-01-282-11/+30
|
* Bug #707518 - Deleting a local address book triggers error "Unable to open ↵Milan Crha2014-01-271-0/+16
| | | | address book"
* [ESourceSelector] Fix a memory leak on a mouse button press eventMilan Crha2014-01-251-1/+4
|
* [ESourceSelector] A performance improvementMilan Crha2014-01-251-0/+30
| | | | | | | A simple performance improvement to ignore ESourceRegistry notifications on source changes for sources which do not belong to the ESourceSelector. Such notifications could cause whole model rebuild, which has other side effects, like a bug #722399.
* Replace usage of __FUNCTION__ with G_STRFUNCMilan Crha2014-01-235-43/+43
|
* Fix return values in a few functionsKjartan Maraas2014-01-225-11/+11
|
* Fix duplicate #includesKjartan Maraas2014-01-222-3/+0
|
* Bug #721427 - Alert about missing condition in a filter rule editorMilan Crha2014-01-222-0/+8
|
* [evolution-source-viewer] Make identity label selectableMilan Crha2014-01-181-0/+1
| | | | Easier to copy&paste than write the generate UID letter by letter.
* Bug #702958 - Crash on attachment add or removeMilan Crha2014-01-171-3/+6
|
* EDateEdit: Force 24 hour format for locales without am/pm equivalentsMilan Crha2014-01-141-27/+47
| | | | | | | | Some locales do not provide equivalents for am/pm (the "%p" of strftime), thus when the user has set 12 hour format in Preferences, then the am and pm times are the same, which confuses the widget, especially in the appointment editor, making it hard (like impossible) to enter pm times by selection in the time combo. An example locale is de_DE.
* Bug #333184 - Add Undo support to component editorsMilan Crha2014-01-118-20/+1325
|
* Bug 721545 - License text contains obsolete FSF postal addressMatthew Barnes2014-01-08470-4739/+4233
|
* Coding style and whitespace cleanup.Matthew Barnes2013-12-071-50/+121
|
* Bug #329616 - Spell checking for Event/Task/Memo editorsMilan Crha2013-11-294-0/+159
| | | | | This is based on the work of Jan-Michael Brummer from bug #705338, just a little extended to be reusable across whole evolution.
* Extend test-source-selector test programMilan Crha2013-11-291-59/+226
| | | | | | | | | | | Added features: - show all four selectors (for Calendars/Memos/Tasks/Books) - be able to open/close selected source Especially the later can be used for testing the factories easily, without running evolution or other client. There can be added more actions on an opened EClient descendant in the future, if it'll be found useful.
* e-utils: replacing g_memmove with memmoveAlberto Ruiz2013-11-271-2/+2
| | | | | glib has removed g_memmove, since it was a macro there is no ABI break but sources have to be adapted to switch to memmove See glib commit 6e4a7fca431f53fdfd89afbe956212229cf52200 for further reference.
* Use SoupSession's request API instead of SoupRequester.Matthew Barnes2013-11-271-23/+2
| | | | SoupRequester functionality is built directly into SoupSession now.
* Fix/mute issues found by Coverity scanMilan Crha2013-11-1522-82/+112
| | | | | | | | | | | | This makes the code free of Coverity scan issues. It is sometimes quite pedantic and expects/suggests some coding habits, thus certain changes may look weird, but for a good thing, I hope. The code is also tagged with Coverity scan suppressions, to keep the code as is and hide the warning too. Also note that Coverity treats g_return_if_fail(), g_assert() and similar macros as unreliable, and it's true these can be disabled during the compile time, thus it brings in other set of 'weird' changes.
* Make e_attachment_set_file_info() thread-safe.Matthew Barnes2013-11-071-4/+9
| | | | Missed this one in commit 9058c6f85dc49f9500e7e67819acfd8c0d2d369c.
* Bug 707112 - Replace webkit_dom_html_element_get_id usageKerrick Staley2013-11-051-0/+6
| | | | | | | | | | | | | | | | webkit_dom_element_get_id() was introduced for WebKitGTK+ 2.2 and deprecates webkit_dom_html_element_get_id(). But Evolution only requires WebKitGTK+ 2.0.1. Ordinarily this would sit on a shelf until we require WebKitGTK+ 2.2, however WebKitGTK+ has now started issuing deprecation warnings about webkit_dom_html_element_get_id() at *runtime*, which is pointless and only fills up users' .xsession-errors file. To put a stop to this, we'll call the new function subject to a pre- processor WebKit version check, with a fallback to the old function. The build requirement remains at WebKitGTK+ 2.0.1.
* EMailIdentityComboBox: Document and clean up.Matthew Barnes2013-11-012-33/+139
|
* Bug 710797 - Name all the timeouts added with g_timeout_add()Bastien Nocera2013-10-3019-79/+108
|
* EProxyEditor: Save on "Method" combo box change.Matthew Barnes2013-10-261-4/+13
|
* EAutocompleteSelector: Show icons.Matthew Barnes2013-10-261-0/+2
| | | | Just a nice touch, I think.
* Document EProxyLinkSelector.Matthew Barnes2013-10-262-0/+53
|
* EProxyEditor: Add an "Open Desktop Settings" button.Matthew Barnes2013-10-261-11/+59
| | | | | | | Shown for the "Defer to Desktop Settings" choice if gnome-control-center is available. The button opens gnome-control-center's "Network" panel, but unfortunately the "Network proxy" item cannot be selected from the command line.
* Add EProxyPreferences.Matthew Barnes2013-10-265-0/+872
|
* Add EProxyLinkSelector.Matthew Barnes2013-10-264-0/+366
|
* Add EProxyEditor.Matthew Barnes2013-10-264-0/+834
|
* Add EProxySelector.Matthew Barnes2013-10-264-0/+930
|
* Add EProxyComboBox.Matthew Barnes2013-10-264-0/+469
| | | | | EProxyComboBox is a combo box of available proxy profiles, as described by ESource instances with an ESourceProxy extension.
* Remove e_source_selector_set_select_new().Matthew Barnes2013-10-262-21/+0
| | | | Sets a flag that's no longer used internally by ESourceSelector.
* ESourceSelector: Fix a reference leak in text_cell_edited_cb().Matthew Barnes2013-10-251-7/+9
| | | | We were leaking the ESource reference.
* ESourceSelector: Add a "show-icons" property.Matthew Barnes2013-10-253-2/+154
| | | | | | | | ESourceSelector can now optionally display an icon next to each ESource matching the selector's "extension-name". Intended for non-homogeneous use cases where a variety of account types are shown in the selector. The icon set is hard-coded, but we could change that if the need arises.
* ESourceSelector cleanups.Matthew Barnes2013-10-253-57/+90
|
* ESourceSelector: Fix a potential runtime warning.Matthew Barnes2013-10-231-1/+3
| | | | | | | When (re)building the tree model, ESourceSelector may fall back to e_source_registry_ref_default_for_extension_name() to help initialize the primary selection. Depending on the selector's "extension-name" property, that function may return NULL. Handle it gracefully.
* Miscellaeous cleanups.Matthew Barnes2013-10-201-6/+6
|
* EMailIdentityComboBox cleanups.Matthew Barnes2013-10-112-37/+37
|
* Bug #215115 - Per-folder From: email addressMilan Crha2013-10-082-2/+76
| | | | | | The change also allows setting accounts for certain recipients (based on a part of the recipient address). The option can be found in Folder Properties and in Edit->Preferences->Composer Preferences->Send Account.
* Bug #708682 - Move with 'End' key with collapsed threads failsMilan Crha2013-10-011-6/+1
| | | | This reverts part of commit 452638466217dbfef0c0954c90aa7cb03cf91452
* Bug #708347 - Memory leak from EWebView/webkitTomas Popela2013-09-231-2/+5
|
* Update API documentation.Matthew Barnes2013-09-152-3/+3
|
* EClientSelector: Show an initial icon based on host name.Matthew Barnes2013-09-151-1/+150
| | | | | | | | Have GNetworkMonitor make an initial guess at the online state of backends by evaluating the reachability of their host name. This will show an initial status icon for all displayed ESources without actually opening a connection, since some backends are expensive to start unnecssarily.
* Bug #706008 - Workaround gnome-shell style change on focus changeTomas Popela2013-09-122-21/+249
| | | | | | | Avoid redrawing (thus loosing the selection and scroll position) of preview window on style change by defining the colors through CSS styles. On style change we just update the CSS color definitions and preview will update itself without redraw.
* EClientSelector: Do not prefetch EClient instancesMilan Crha2013-09-121-51/+0
| | | | | Let the open for a user, when respective source in the selector is selected.
* Miscellaneous cleanups.Matthew Barnes2013-09-0814-121/+165
|
* Bug #706901 - Large default book slows down composer openMilan Crha2013-08-301-4/+15
|
* Skip evolution from 'Open with' list of applications on attachmentsMilan Crha2013-08-291-0/+26
|
* EAlertBar: Mention Escape binding in close button tooltip.Matthew Barnes2013-08-111-1/+2
|
* Add e_alert_bar_close_alert().Matthew Barnes2013-08-112-0/+41
| | | | | Closes the active EAlert and returns TRUE, or else returns FALSE if there is no active EAlert.
* Bug #704207 - Dragged column's arrow indicator oversizedMilan Crha2013-08-091-0/+3
|
* Bug #699603 - Message list scrolls to cursor on style changeMilan Crha2013-08-013-0/+63
|
* [workaround] Bug #695633 - Attachments disappear after opening oneMilan Crha2013-07-312-4/+4
|
* EPreviewPane: Handle "new-activity" signals from EWebView.Matthew Barnes2013-07-281-0/+25
| | | | Configures the EActivity to submit alerts to the EPreviewPane.
* EPreviewPane cleanups.Matthew Barnes2013-07-282-25/+5
|
* EWebView: Add an "image-save" action.Matthew Barnes2013-07-282-1/+21
| | | | | | There's now enough hooks in EWebView that it can take over image saving from EMailDisplay / EMailReader, with the added perk that a "Save Image" pop-up menu item now appears for images in ALL preview panes.
* Add e_web_view_cursor_image_save().Matthew Barnes2013-07-282-0/+236
| | | | | Prompts the user to choose a destination file and then asynchronously saves the image under the cursor to the destination file.
* Add e_web_view_cursor_image_copy().Matthew Barnes2013-07-283-157/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | Asynchronously copies the image under the cursor to the clipboard. This replaces the "cursor-image" property, which attempts to match the image URI to a subresource from WebKitWebDataSource. The problem with that approach is EMailDisplay redirects several URI schemes to its own custom request handlers which further mutate the URI. So for example, a text/html message may use a "cid:" URI to refer to an embedded image, which EMailDisplay transforms to a "mail:" URI and finally to a "data:" URI. The final image URI might not be derivable from the original URI without retracing the SoupRequest. The "image-copy" action now calls e_web_view_cursor_image_copy(). This also adds an explicit requirement on gdk-pixbuf-2.0 >= 2.24 for gdk_pixbuf_new_from_stream_async() / finish(). New functions: e_web_view_cursor_image_copy() Removed functions: e_web_view_get_cursor_image() e_web_view_set_cursor_image()
* Add e_web_view_new_activity().Matthew Barnes2013-07-282-0/+51
| | | | | | | | | Returns a new EActivity for an EWebView-related asynchronous operation, and emits a "new-activity" signal. By default the EActivity comes loaded with a GCancellable and sets the EWebView itself as the alert sink (which means alerts are displayed directly in the content area). The signal emission allows the EActivity to be further customized and/or tracked by the application.
* Add e_web_view_request().Matthew Barnes2013-07-282-0/+160
| | | | | | | | | | | Asynchronously requests data at a URI by way of a SoupRequest to WebKit's default SoupSession, incorporating both e_web_view_redirect_uri() and the custom request handlers installed via e_web_view_install_request_handler(). New functions: e_web_view_request() e_web_view_request_finish()