aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog2
-rw-r--r--composer/e-msg-composer.c7
2 files changed, 9 insertions, 0 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index e62b6bc979..bc58eb723c 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -9,6 +9,8 @@
* e-msg-composer.c (menu_edit_delete_all_cb): new callback
(menu_edit_delete_all_cb): set orig to 0 too
+ (menu_edit_delete_all_cb): be more careful about text color and
+ style
2001-05-23 Radek Doulik <rodo@ximian.com>
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index fa531c14a4..c4a915cc1c 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1061,11 +1061,18 @@ menu_edit_delete_all_cb (BonoboUIComponent *uic, void *data, const char *path)
GNOME_GtkHTML_Editor_Engine_undo_begin (composer->editor_engine, "Delete all but signature", "Undelete all", &ev);
GNOME_GtkHTML_Editor_Engine_freeze (composer->editor_engine, &ev);
+ GNOME_GtkHTML_Editor_Engine_runCommand (composer->editor_engine, "disable-selection", &ev);
+ GNOME_GtkHTML_Editor_Engine_runCommand (composer->editor_engine, "text-default-color", &ev);
+ GNOME_GtkHTML_Editor_Engine_runCommand (composer->editor_engine, "bold-off", &ev);
+ GNOME_GtkHTML_Editor_Engine_runCommand (composer->editor_engine, "italic-off", &ev);
+ GNOME_GtkHTML_Editor_Engine_runCommand (composer->editor_engine, "underline-off", &ev);
+ GNOME_GtkHTML_Editor_Engine_runCommand (composer->editor_engine, "strikeout-off", &ev);
GNOME_GtkHTML_Editor_Engine_runCommand (composer->editor_engine, "select-all", &ev);
GNOME_GtkHTML_Editor_Engine_runCommand (composer->editor_engine, "delete", &ev);
GNOME_GtkHTML_Editor_Engine_setParagraphData (composer->editor_engine, "signature", "0", &ev);
GNOME_GtkHTML_Editor_Engine_setParagraphData (composer->editor_engine, "orig", "0", &ev);
e_msg_composer_set_sig_file (composer, composer->sig_file);
+ GNOME_GtkHTML_Editor_Engine_runCommand (composer->editor_engine, "style-normal", &ev);
GNOME_GtkHTML_Editor_Engine_thaw (composer->editor_engine, &ev);
GNOME_GtkHTML_Editor_Engine_undo_end (composer->editor_engine, &ev);