[evolution-patches] Correct calculation of cursor's height for notifying IM context



Hi, guys,

Please help review this little patch.

-- 
Yong.Sun <Yong Sun Sun com>
SUN (China) ERI
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/ChangeLog,v
retrieving revision 1.1814.2.18
diff -u -p -r1.1814.2.18 ChangeLog
--- ChangeLog	28 Nov 2003 11:02:25 -0000	1.1814.2.18
+++ ChangeLog	10 Dec 2003 04:54:44 -0000
@@ -1,3 +1,8 @@
+2003-12-10  Yong Sun <Yong Sun sun com>
+
+	* htmlengine-edit-cursor.c: correct the calculation of 
+	cursor's height
+	
 2003-11-20  Radek Doulik  <rodo ximian com>
 
 	* htmlengine-edit-text.c (upper_lower): use g_utf8 functions to
Index: htmlengine-edit-cursor.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/src/htmlengine-edit-cursor.c,v
retrieving revision 1.22
diff -u -p -r1.22 htmlengine-edit-cursor.c
--- htmlengine-edit-cursor.c	2 Apr 2003 05:41:47 -0000	1.22
+++ htmlengine-edit-cursor.c	10 Dec 2003 04:54:46 -0000
@@ -295,7 +295,7 @@ html_engine_draw_cursor_in_area (HTMLEng
 	pos.x = x1; 
 	pos.y = y1;
 	pos.width = x2 - x1;
-	pos.height = x2 - x1;
+	pos.height = y2 - y1;
 	gtk_im_context_set_cursor_location (GTK_HTML (engine->widget)->priv->im_context, &pos);
 
 	if (clip_rect (engine, x, y, width, height, &x1, &y1, &x2, &y2)) {


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