diff options
author | Johnny Jacob <jjohnny@src.gnome.org> | 2008-02-25 12:05:19 +0800 |
---|---|---|
committer | Johnny Jacob <jjohnny@src.gnome.org> | 2008-02-25 12:05:19 +0800 |
commit | 6eb14fb4f58ebcf5cf38f6d68842c0a1e167a187 (patch) | |
tree | be9091202b5312869dfd74e0b0a44f995ce2b918 /composer/e-msg-composer.c | |
parent | 7872974d30866671fa29ea02143a894b3821463c (diff) | |
download | gsoc2013-evolution-6eb14fb4f58ebcf5cf38f6d68842c0a1e167a187.tar.gz gsoc2013-evolution-6eb14fb4f58ebcf5cf38f6d68842c0a1e167a187.tar.zst gsoc2013-evolution-6eb14fb4f58ebcf5cf38f6d68842c0a1e167a187.zip |
Reverting commit for #371011
svn path=/trunk/; revision=35083
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index ae82e9b262..5d1dbe23ab 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -5419,14 +5419,16 @@ e_msg_composer_show_sig_file (EMsgComposer *composer) GNOME_GtkHTML_Editor_Engine_freeze (p->eeditor_engine, &ev); GNOME_GtkHTML_Editor_Engine_runCommand (p->eeditor_engine, "cursor-position-save", &ev); GNOME_GtkHTML_Editor_Engine_undoBegin (p->eeditor_engine, "Set signature", "Reset signature", &ev); + delete_old_signature (composer); html = get_signature_html (composer); if (html) { GNOME_GtkHTML_Editor_Engine_runCommand (p->eeditor_engine, "insert-paragraph", &ev); - GNOME_GtkHTML_Editor_Engine_runCommand (p->eeditor_engine, "cursor-backward", &ev); - GNOME_GtkHTML_Editor_Engine_runCommand (p->eeditor_engine, "insert-paragraph", &ev); - - /* printf ("insert %s\n", html); */ + if (!GNOME_GtkHTML_Editor_Engine_runCommand (p->eeditor_engine, "cursor-backward", &ev)) + GNOME_GtkHTML_Editor_Engine_runCommand (p->eeditor_engine, "insert-paragraph", &ev); + else + GNOME_GtkHTML_Editor_Engine_runCommand (p->eeditor_engine, "cursor-forward", &ev); + /* printf ("insert %s\n", html); */ GNOME_GtkHTML_Editor_Engine_setParagraphData (p->eeditor_engine, "orig", "0", &ev); GNOME_GtkHTML_Editor_Engine_runCommand (p->eeditor_engine, "indent-zero", &ev); GNOME_GtkHTML_Editor_Engine_runCommand (p->eeditor_engine, "style-normal", &ev); |