[evolution/wip/webkit2] ETMLEditorSelection - Font color in picker is not changed when moving between different font colors



commit 93a34ba1d80b30c97fe3bb5fb91bc039df006086
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Mar 27 13:46:25 2015 +0100

    ETMLEditorSelection - Font color in picker is not changed when moving between different font colors

 .../e-html-editor-selection-dom-functions.c        |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/web-extensions/e-html-editor-selection-dom-functions.c 
b/web-extensions/e-html-editor-selection-dom-functions.c
index 7d2914d..bf73dac 100644
--- a/web-extensions/e-html-editor-selection-dom-functions.c
+++ b/web-extensions/e-html-editor-selection-dom-functions.c
@@ -3848,13 +3848,10 @@ dom_selection_get_font_color (WebKitDOMDocument *document,
 {
        gchar *color;
 
-       if (dom_selection_is_collapsed (document)) {
-/* FIXME WK2
-               color = g_strdup (selection->priv->font_color);*/
-       } else {
-               color = get_font_property (document, "color");
-               if (!(color && *color))
-                       color = g_strdup ("#000000");
+       color = get_font_property (selection, "color");
+       if (!(color && *color)) {
+               *rgba = black;
+               return;
        }
 
        return color;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]