[evolution/wip/webkit2] Initialize variables to expected values



commit 15ebf0c08e5cc40d83e008f8eb0f071f5fa2e2c9
Author: Milan Crha <mcrha redhat com>
Date:   Wed Mar 9 17:45:20 2016 +0100

    Initialize variables to expected values
    
    These two were after critical runtime warnigs when opening the composer:
    Gtk-WARNING **: Radio group does not contain an action with value '0'
    Gtk-WARNING **: Radio group does not contain an action with value '0'

 e-util/e-html-editor-selection.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index ac56ab6..547e489 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -29,7 +29,8 @@
 #include <camel/camel.h>
 #include <web-extensions/composer/e-html-editor-web-extension-names.h>
 
-#include <e-util/e-util.h>
+#include "e-util-enums.h"
+#include "e-misc-utils.h"
 
 #include <webkit2/webkit2.h>
 #include <string.h>
@@ -771,6 +772,8 @@ static void
 e_html_editor_selection_init (EHTMLEditorSelection *selection)
 {
        selection->priv = E_HTML_EDITOR_SELECTION_GET_PRIVATE (selection);
+       selection->priv->block_format = E_HTML_EDITOR_SELECTION_BLOCK_FORMAT_PARAGRAPH;
+       selection->priv->font_size = E_HTML_EDITOR_SELECTION_FONT_SIZE_NORMAL;
 }
 
 /**


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