[evolution-patches] gtkhtml: strange cursor jump fix



Attached patch finally fixes the weird cursor jump to home bug.

Index: htmlengine.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/htmlengine.c,v
retrieving revision 1.534
diff -u -p -r1.534 htmlengine.c
--- htmlengine.c	9 Apr 2003 23:54:50 -0000	1.534
+++ htmlengine.c	14 Apr 2003 20:06:22 -0000
@@ -4142,6 +4142,7 @@ html_engine_stream_end (GtkHTMLStream *s
 	if (e->editable) {
 		html_engine_ensure_editable (e);
 		html_cursor_home (e->cursor, e);
+		e->newPage = FALSE;
 	}
 
 	g_signal_emit (e, signals [LOAD_DONE], 0);
@@ -4577,6 +4578,7 @@ html_engine_set_editable (HTMLEngine *e,
 	if (editable) {
 		html_engine_ensure_editable (e);
 		html_cursor_home (e->cursor, e);
+		e->newPage = FALSE;
 
 		if (e->have_focus)
 			html_engine_setup_blinking_cursor (e);
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/ChangeLog,v
retrieving revision 1.1778
diff -u -p -r1.1778 ChangeLog
--- ChangeLog	9 Apr 2003 23:54:50 -0000	1.1778
+++ ChangeLog	14 Apr 2003 20:06:25 -0000
@@ -1,3 +1,9 @@
+2003-04-14  Radek Doulik  <rodo ximian com>
+
+	* htmlengine.c (html_engine_stream_end): set newPage to false to
+	avoid the cursor jumping to home
+	(html_engine_set_editable): ditto
+
 2003-04-09  Larry Ewing  <lewing ximian com>
 
 	* htmlengine.c (html_engine_finalize): remove any pending


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]