aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@src.gnome.org>2001-05-25 02:39:57 +0800
committerRadek Doulik <rodo@src.gnome.org>2001-05-25 02:39:57 +0800
commitcd3efd875d94048a256179987de66f8766e31a69 (patch)
treeb28a0786eba967a4da075036b341bb28be901084 /composer/e-msg-composer.c
parent7226882e10c708583777f3772308f400cdfe3180 (diff)
downloadgsoc2013-evolution-cd3efd875d94048a256179987de66f8766e31a69.tar
gsoc2013-evolution-cd3efd875d94048a256179987de66f8766e31a69.tar.gz
gsoc2013-evolution-cd3efd875d94048a256179987de66f8766e31a69.tar.bz2
gsoc2013-evolution-cd3efd875d94048a256179987de66f8766e31a69.tar.lz
gsoc2013-evolution-cd3efd875d94048a256179987de66f8766e31a69.tar.xz
gsoc2013-evolution-cd3efd875d94048a256179987de66f8766e31a69.tar.zst
gsoc2013-evolution-cd3efd875d94048a256179987de66f8766e31a69.zip
(menu_edit_delete_all_cb): be more careful about text color and
style svn path=/trunk/; revision=9965
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c7
1 files changed, 7 insertions, 0 deletions
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);