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:
Niels De Graef 2022-05-20 17:39:24 +02:00
parent 519e8745d2
commit 75e42eda31

View file

@ -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);
}