[evolution-patches] gtkhtml patch



This patch was submitted to bugzilla.suse.de by Hiroyuki Ikezoe
(#50247). It is in autobuild and needs to be upstreamed.

-Gary
--- Begin Message ---
HI,
I found a crash bug in GtkHTML-3.2.3 with some type of IM modules, which
emits "commit" signal to the IMContext when focus out from the widget.

I send a patch for fixing this problem,  but I could not understand the
whole codes of GtkHTML,  please check that the patch does not cause any
other problems.

Thanks.

--- gtkhtml-3.2.3/src/htmlcursor.c	2004-09-17 01:25:07.000000000 +0900
+++ gtkhtml-3.2.3_impatch/src/htmlcursor.c	2004-12-30 10:46:09.000000000 +0900
@@ -684,8 +684,6 @@
 	g_return_if_fail (cursor != NULL);
 	g_return_if_fail (position >= 0);
 
-	gtk_html_im_reset (engine->widget);
-
 	if (engine->need_spell_check)
 		html_engine_spell_check_range (engine, engine->cursor, engine->cursor);
 
@@ -700,6 +698,8 @@
 				break;
 		}
 	}
+	
+	gtk_html_im_reset (engine->widget);
 }
 

--- End Message ---


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