mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
modules: Make sure we restore cursor in ColorWheel
We set the crosshair cursor when the user starts dragging, but we never restored it when dragging ended. This commit fixes that.
This commit is contained in:
parent
519e8745d2
commit
75e42eda31
1 changed files with 3 additions and 0 deletions
|
@ -787,6 +787,8 @@ gimp_color_wheel_drag_end (GtkGestureDrag *gesture,
|
|||
compute_sv (wheel, x, y, &s, &v);
|
||||
gimp_color_wheel_set_color (wheel, priv->h, s, v);
|
||||
}
|
||||
|
||||
gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (wheel)), NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -798,6 +800,7 @@ gimp_color_wheel_drag_cancel (GtkGesture *gesture,
|
|||
GimpColorWheelPrivate *priv = gimp_color_wheel_get_instance_private (wheel);
|
||||
|
||||
priv->mode = DRAG_NONE;
|
||||
gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (wheel)), NULL);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue