[evolution/gnome-3-22] Only update the composer colors when the web extension is ready
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-22] Only update the composer colors when the web extension is ready
- Date: Wed, 5 Oct 2016 10:42:00 +0000 (UTC)
commit f021f8d53448f8020e085a3038e40fa21d08d08e
Author: Tomas Popela <tpopela redhat com>
Date: Wed Oct 5 12:40:17 2016 +0200
Only update the composer colors when the web extension is ready
This fixes warnings printed on the console.
modules/webkit-editor/e-webkit-editor.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/modules/webkit-editor/e-webkit-editor.c b/modules/webkit-editor/e-webkit-editor.c
index 8b898f1..e3c9763 100644
--- a/modules/webkit-editor/e-webkit-editor.c
+++ b/modules/webkit-editor/e-webkit-editor.c
@@ -5483,13 +5483,13 @@ webkit_editor_load_changed_cb (EWebKitEditor *wk_editor,
wk_editor->priv->reload_in_progress = FALSE;
- if (webkit_editor_is_ready (E_CONTENT_EDITOR (wk_editor)))
+ if (webkit_editor_is_ready (E_CONTENT_EDITOR (wk_editor))) {
e_content_editor_emit_load_finished (E_CONTENT_EDITOR (wk_editor));
- else
+ webkit_editor_style_updated_cb (wk_editor);
+ } else
wk_editor->priv->emit_load_finished_when_extension_is_ready = TRUE;
dispatch_pending_operations (wk_editor);
- webkit_editor_style_updated_cb (wk_editor);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]