evolution r34891 - trunk/composer
- From: jjohnny svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r34891 - trunk/composer
- Date: Fri, 25 Jan 2008 12:33:59 +0000 (GMT)
Author: jjohnny
Date: Fri Jan 25 12:33:59 2008
New Revision: 34891
URL: http://svn.gnome.org/viewvc/evolution?rev=34891&view=rev
Log:
Fix for 371011 : Insert a new paragraph for for signature. needed by GTKHTML for undo/redo.
Modified:
trunk/composer/ChangeLog
trunk/composer/e-msg-composer.c
Modified: trunk/composer/e-msg-composer.c
==============================================================================
--- trunk/composer/e-msg-composer.c (original)
+++ trunk/composer/e-msg-composer.c Fri Jan 25 12:33:59 2008
@@ -5422,16 +5422,14 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]