update the cursor on GDK_ENTER_NOTIFY.

2003-05-18  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	(gimp_display_shell_canvas_tool_events): update the cursor on
	GDK_ENTER_NOTIFY.

	* app/display/gimpdisplayshell-cursor.c
	(gimp_display_shell_update_cursor): argh, "0" coordinates are
	*inside* the canvas.

	Together fixes bug #113239.
This commit is contained in:
Michael Natterer 2003-05-18 20:20:57 +00:00 committed by Michael Natterer
parent 73e5a890bf
commit c12bec704c
3 changed files with 17 additions and 3 deletions

View File

@ -1,3 +1,15 @@
2003-05-18 Michael Natterer <mitch@gimp.org>
* app/display/gimpdisplayshell-callbacks.c
(gimp_display_shell_canvas_tool_events): update the cursor on
GDK_ENTER_NOTIFY.
* app/display/gimpdisplayshell-cursor.c
(gimp_display_shell_update_cursor): argh, "0" coordinates are
*inside* the canvas.
Together fixes bug #113239.
2003-05-18 Michael Natterer <mitch@gimp.org>
* app/widgets/gimppaletteeditor.c (color_palette_target_table):

View File

@ -438,6 +438,8 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
if (cevent->mode != GDK_CROSSING_NORMAL)
return TRUE;
update_cursor = TRUE;
}
break;

View File

@ -124,8 +124,8 @@ gimp_display_shell_update_cursor (GimpDisplayShell *shell,
new_cursor = (shell->draw_cursor &&
shell->proximity &&
x > 0 &&
y > 0);
x >= 0 &&
y >= 0);
/* Erase old cursor, if necessary */
@ -145,7 +145,7 @@ gimp_display_shell_update_cursor (GimpDisplayShell *shell,
shell->cursor_x = x;
shell->cursor_y = y;
if (x > 0 && y > 0)
if (x >= 0 && y >= 0)
{
gimp_display_shell_untransform_xy (shell, x, y, &t_x, &t_y, FALSE, FALSE);
}