diff options
author | Johnny Jacob <jjohnny@src.gnome.org> | 2008-01-25 20:33:59 +0800 |
---|---|---|
committer | Johnny Jacob <jjohnny@src.gnome.org> | 2008-01-25 20:33:59 +0800 |
commit | 6459ad63f084fbfd761b3691b8a7934b92f4588a (patch) | |
tree | ecf6e45bc6f9daf36ece98636f26990a0056acc8 /composer | |
parent | 4d94a067247e11f8fd1c2de0427f636c7c8e9ec9 (diff) | |
download | gsoc2013-evolution-6459ad63f084fbfd761b3691b8a7934b92f4588a.tar gsoc2013-evolution-6459ad63f084fbfd761b3691b8a7934b92f4588a.tar.gz gsoc2013-evolution-6459ad63f084fbfd761b3691b8a7934b92f4588a.tar.bz2 gsoc2013-evolution-6459ad63f084fbfd761b3691b8a7934b92f4588a.tar.lz gsoc2013-evolution-6459ad63f084fbfd761b3691b8a7934b92f4588a.tar.xz gsoc2013-evolution-6459ad63f084fbfd761b3691b8a7934b92f4588a.tar.zst gsoc2013-evolution-6459ad63f084fbfd761b3691b8a7934b92f4588a.zip |
Fix for 371011 : Insert a new paragraph for for signature. needed by GTKHTML for undo/redo.
svn path=/trunk/; revision=34891
Diffstat (limited to 'composer')
-rw-r--r-- | composer/ChangeLog | 7 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 10 |
2 files changed, 11 insertions, 6 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index 523164bdbc..9f6e9f55ff 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,4 +1,11 @@ 2008-01-25 Johnny Jacob <jjohnny@novell.com> + + ** Fix for bug #371011 + + * e-msg-composer.c (e_msg_composer_show_sig_file): Insert a new + paragraph for signature. + +2008-01-25 Johnny Jacob <jjohnny@novell.com> ** Fixes bug #503327 & #503678 diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 56035b1aea..4d58b4b386 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -5422,16 +5422,14 @@ 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); - 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_runCommand (p->eeditor_engine, "cursor-backward", &ev); + GNOME_GtkHTML_Editor_Engine_runCommand (p->eeditor_engine, "insert-paragraph", &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); |