aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-02-13 05:42:00 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-02-13 05:42:00 +0800
commit24c0e32fa591fd974c5697698a500e770b837195 (patch)
tree9c5e817c2bfe0a448aea3d6c6e89d789ecf3f548 /composer
parent80b691582fb17d12885a18ebc620fa78eda78691 (diff)
downloadgsoc2013-evolution-24c0e32fa591fd974c5697698a500e770b837195.tar.gz
gsoc2013-evolution-24c0e32fa591fd974c5697698a500e770b837195.tar.zst
gsoc2013-evolution-24c0e32fa591fd974c5697698a500e770b837195.zip
Use set_editor_text() (e_msg_composer_new_from_url): Same.
2002-02-12 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (e_msg_composer_flush_pending_body): Use set_editor_text() (e_msg_composer_new_from_url): Same. (e_msg_composer_set_body_text): Re-Show the signature. svn path=/trunk/; revision=15692
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog7
-rw-r--r--composer/e-msg-composer.c17
2 files changed, 17 insertions, 7 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index a2478ce18a..37cb27afa9 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,10 @@
+2002-02-12 Jeffrey Stedfast <fejj@ximian.com>
+
+ * e-msg-composer.c (e_msg_composer_flush_pending_body): Use
+ set_editor_text()
+ (e_msg_composer_new_from_url): Same.
+ (e_msg_composer_set_body_text): Re-Show the signature.
+
2002-02-12 Radek Doulik <rodo@ximian.com>
* e-msg-composer.c (e_msg_composer_is_dirty): reflect gtkhtml API
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 21b0328a29..265538c872 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -843,7 +843,7 @@ set_editor_text (EMsgComposer *composer, const char *text)
CORBA_exception_init (&ev);
persist = (Bonobo_PersistStream) bonobo_object_client_query_interface (
bonobo_widget_get_server (editor), "IDL:Bonobo/PersistStream:1.0", &ev);
-
+
g_return_if_fail (persist != CORBA_OBJECT_NIL);
stream = bonobo_stream_mem_create (text, strlen (text),
@@ -2614,7 +2614,7 @@ e_msg_composer_flush_pending_body (EMsgComposer *composer, gboolean apply)
body = gtk_object_get_data (GTK_OBJECT (composer), "body:text");
if (body) {
if (apply)
- e_msg_composer_set_body_text (composer, body);
+ set_editor_text (composer, body);
gtk_object_set_data (GTK_OBJECT (composer), "body:text", NULL);
g_free (body);
@@ -3124,8 +3124,10 @@ e_msg_composer_new_from_url (const char *url_in)
}
if (body) {
- char *htmlbody = e_text_to_html (body, E_TEXT_TO_HTML_PRE);
- e_msg_composer_set_body_text (composer, htmlbody);
+ char *htmlbody;
+
+ htmlbody = e_text_to_html (body, E_TEXT_TO_HTML_PRE);
+ set_editor_text (composer, htmlbody);
g_free (htmlbody);
}
@@ -3195,10 +3197,11 @@ e_msg_composer_set_body_text (EMsgComposer *composer, const char *text)
{
g_return_if_fail (E_IS_MSG_COMPOSER (composer));
- printf ("setting as body text:\n-----\n%s\n-----\n", text);
- fflush (stdout);
-
set_editor_text (composer, text);
+
+ /* set editor text unfortunately kills the signature so we
+ have to re-show it */
+ e_msg_composer_show_sig_file (composer);
}