mirror of https://github.com/GNOME/gimp.git
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:
parent
73e5a890bf
commit
c12bec704c
12
ChangeLog
12
ChangeLog
|
@ -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>
|
2003-05-18 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
* app/widgets/gimppaletteeditor.c (color_palette_target_table):
|
* app/widgets/gimppaletteeditor.c (color_palette_target_table):
|
||||||
|
|
|
@ -438,6 +438,8 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
|
||||||
|
|
||||||
if (cevent->mode != GDK_CROSSING_NORMAL)
|
if (cevent->mode != GDK_CROSSING_NORMAL)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
|
update_cursor = TRUE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -124,8 +124,8 @@ gimp_display_shell_update_cursor (GimpDisplayShell *shell,
|
||||||
|
|
||||||
new_cursor = (shell->draw_cursor &&
|
new_cursor = (shell->draw_cursor &&
|
||||||
shell->proximity &&
|
shell->proximity &&
|
||||||
x > 0 &&
|
x >= 0 &&
|
||||||
y > 0);
|
y >= 0);
|
||||||
|
|
||||||
/* Erase old cursor, if necessary */
|
/* Erase old cursor, if necessary */
|
||||||
|
|
||||||
|
@ -145,7 +145,7 @@ gimp_display_shell_update_cursor (GimpDisplayShell *shell,
|
||||||
shell->cursor_x = x;
|
shell->cursor_x = x;
|
||||||
shell->cursor_y = y;
|
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);
|
gimp_display_shell_untransform_xy (shell, x, y, &t_x, &t_y, FALSE, FALSE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue