[evolution-rss] Bug 733139 - Pass correct object to e_html_editor_view_set_text_html()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-rss] Bug 733139 - Pass correct object to e_html_editor_view_set_text_html()
- Date: Thu, 31 Jul 2014 07:27:38 +0000 (UTC)
commit 20a93c3d83f6643dc04fc6b39912240511ffdb34
Author: Milan Crha <mcrha redhat com>
Date: Thu Jul 31 09:27:12 2014 +0200
Bug 733139 - Pass correct object to e_html_editor_view_set_text_html()
src/rss.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/rss.c b/src/rss.c
index fd526a0..da888fd 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -1321,19 +1321,20 @@ org_gnome_evolution_presend (EPlugin *ep, EMEventTargetComposer *t)
#if EVOLUTION_VERSION >= 31303
editor = e_msg_composer_get_editor (t->composer);
view = e_html_editor_get_view (editor);
- e_html_editor_view_set_text_html (editor, buff);
+ e_html_editor_view_set_text_html (view, buff);
#else
gtkhtml_editor_set_text_html((GtkhtmlEditor *)t->composer, (gchar *)buff, size);
#endif
xmlFree (buff);
- } else
+ } else {
#if EVOLUTION_VERSION >= 31303
editor = e_msg_composer_get_editor (t->composer);
view = e_html_editor_get_view (editor);
- e_html_editor_view_set_text_html (editor, text);
+ e_html_editor_view_set_text_html (view, text);
#else
gtkhtml_editor_set_text_html((GtkhtmlEditor *)t->composer, (gchar *)text, length);
#endif
+ }
g_free (text);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]