[evolution-patches] cursor fix in composer



attached patch fixes http://bugzilla.ximian.com/show_bug.cgi?id=45366

Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/components/html-editor/ChangeLog,v
retrieving revision 1.409
diff -u -p -r1.409 ChangeLog
--- ChangeLog	13 Jun 2003 21:45:00 -0000	1.409
+++ ChangeLog	26 Jun 2003 13:08:03 -0000
@@ -1,3 +1,8 @@
+2003-06-26  Radek Doulik  <rodo ximian com>
+
+	* editor-control-factory.c (html_button_pressed): update for gtk2
+	changed coordinates
+
 2003-06-13  Larry Ewing  <lewing ximian com>
 
 	* editor-control-factory.c (send_event_void): unref all return
Index: editor-control-factory.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/components/html-editor/editor-control-factory.c,v
retrieving revision 1.131
diff -u -p -r1.131 editor-control-factory.c
--- editor-control-factory.c	13 Jun 2003 21:45:01 -0000	1.131
+++ editor-control-factory.c	26 Jun 2003 13:08:03 -0000
@@ -313,10 +313,7 @@ html_button_pressed (GtkWidget *html, Gd
 	HTMLEngine *engine = cd->html->engine;
 	guint offset;
 
-	cd->obj = html_engine_get_object_at (engine,
-					     event->x + engine->x_offset,
-					     event->y + engine->y_offset,
-					     &offset, FALSE);
+	cd->obj = html_engine_get_object_at (engine, event->x, event->y, &offset, FALSE);
 	switch (event->button) {
 	case 1:
 		if (event->type == GDK_2BUTTON_PRESS && cd->obj && event->state & GDK_CONTROL_MASK) {
@@ -331,9 +328,7 @@ html_button_pressed (GtkWidget *html, Gd
 	case 3:
 		if (!html_engine_is_selection_active (engine) || !html_engine_point_in_selection (engine, cd->obj, offset)) {
 			html_engine_disable_selection (engine);
-			html_engine_jump_at (engine,
-					     event->x + engine->x_offset,
-					     event->y + engine->y_offset);
+			html_engine_jump_at (engine, event->x, event->y);
 			gtk_html_update_styles (cd->html);
 		}
 


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