/* needed because the new thread needs to call g_idle_add () */ static gboolean update_composer_text (GArray *array) { EMsgComposer *composer; gchar *text; composer = g_array_index (array, gpointer, 0); text = g_array_index (array, gpointer, 1); e_msg_composer_set_body_text (composer, text, FALSE); enable_composer (composer); g_free (text); return FALSE; }
/* needed because the new thread needs to call g_idle_add () */ static gboolean update_composer_text (GArray *array) { EMsgComposer *composer; EHTMLEditor *editor; EHTMLEditorView *view; gchar *text; composer = g_array_index (array, gpointer, 0); text = g_array_index (array, gpointer, 1); editor = e_msg_composer_get_editor (composer); view = e_html_editor_get_view (editor); e_msg_composer_set_body_text (composer, text, FALSE); enable_composer (composer); e_html_editor_view_set_changed (view, TRUE); g_free (text); return FALSE; }