Navigator should use a different icon while panning

The Navigator uses the same hand icon regardless whether panning
the red square or not, this branch tries to fix that, #4738
Includes a cleanup of icon names, i.e. the crosshair should not be
called the hand.
This commit is contained in:
Morgan Hardwood
2018-08-20 10:44:27 +02:00
parent 9847285c4c
commit 871188a1d8
11 changed files with 179 additions and 26 deletions

View File

@@ -230,8 +230,9 @@ bool PreviewWindow::on_motion_notify_event (GdkEventMotion* event)
mainCropWin->remoteMove ((event->x - press_x) / zoom, (event->y - press_y) / zoom);
press_x = event->x;
press_y = event->y;
newType = CSHandClosed;
} else if (inside) {
newType = CSClosedHand;
newType = CSHandOpen;
} else {
newType = CSArrow;
}
@@ -262,8 +263,8 @@ bool PreviewWindow::on_button_press_event (GdkEventButton* event)
press_x = event->x;
press_y = event->y;
if (cursor_type != CSClosedHand) {
cursor_type = CSClosedHand;
if (cursor_type != CSHandClosed) {
cursor_type = CSHandClosed;
CursorManager::setWidgetCursor(get_window(), cursor_type);
}
}