From 5de3176b65b94b487e4cd11686c3f473a0966f6c Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 26 May 2000 14:28:04 +0000 Subject: Update for PersistStream changes * e-msg-composer.c (get_editor_text, set_editor_text): Update for PersistStream changes svn path=/trunk/; revision=3215 --- composer/ChangeLog | 5 +++++ composer/e-msg-composer.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/composer/ChangeLog b/composer/ChangeLog index 81b38b8b31..92d71ec69e 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,8 @@ +2000-05-26 Dan Winship + + * e-msg-composer.c (get_editor_text, set_editor_text): Update for + PersistStream changes + 2000-05-25 Not Zed * e-msg-composer.c (build_message): Use camel_data_wrapper_new diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index eab6dfca92..43440380f1 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -120,7 +120,7 @@ get_editor_text (BonoboWidget *editor) g_assert (persist != CORBA_OBJECT_NIL); stream = bonobo_stream_mem_create (NULL, 0, FALSE, TRUE); - Bonobo_PersistStream_save (persist, (Bonobo_Stream)bonobo_object_corba_objref (BONOBO_OBJECT (stream)), &ev); + Bonobo_PersistStream_save (persist, (Bonobo_Stream)bonobo_object_corba_objref (BONOBO_OBJECT (stream)), "text/html", &ev); if (ev._major != CORBA_NO_EXCEPTION) { /* FIXME. Some error message. */ return NULL; @@ -216,7 +216,7 @@ set_editor_text (BonoboWidget *editor, const char *text) stream = bonobo_stream_mem_create ((char *)text, strlen (text), TRUE, FALSE); - Bonobo_PersistStream_load (persist, (Bonobo_Stream)bonobo_object_corba_objref (BONOBO_OBJECT (stream)), &ev); + Bonobo_PersistStream_load (persist, (Bonobo_Stream)bonobo_object_corba_objref (BONOBO_OBJECT (stream)), "text/html", &ev); if (ev._major != CORBA_NO_EXCEPTION) { /* FIXME. Some error message. */ return; -- cgit