range: switch secondary and middle button on steppers

Clicking on steppers does different things depending on which
button you use. We used to scroll to the end on secondary click
and use high-speed autoscrolling on middle-click. Switch these
two around, since the scroll-to-end functionality is less likely
to be useful, and the seconary button makes the autoscrolling
more easily available.
This commit is contained in:
Matthias Clasen 2015-07-12 00:23:32 -04:00
parent f35c7b83d9
commit 6e280d2478

View File

@ -2305,10 +2305,10 @@ range_get_scroll_for_grab (GtkRange *range)
case GDK_BUTTON_PRIMARY:
return invert ? GTK_SCROLL_STEP_FORWARD : GTK_SCROLL_STEP_BACKWARD;
break;
case GDK_BUTTON_MIDDLE:
case GDK_BUTTON_SECONDARY:
return invert ? GTK_SCROLL_PAGE_FORWARD : GTK_SCROLL_PAGE_BACKWARD;
break;
case GDK_BUTTON_SECONDARY:
case GDK_BUTTON_MIDDLE:
return invert ? GTK_SCROLL_END : GTK_SCROLL_START;
break;
}
@ -2322,10 +2322,10 @@ range_get_scroll_for_grab (GtkRange *range)
case GDK_BUTTON_PRIMARY:
return invert ? GTK_SCROLL_STEP_BACKWARD : GTK_SCROLL_STEP_FORWARD;
break;
case GDK_BUTTON_MIDDLE:
case GDK_BUTTON_SECONDARY:
return invert ? GTK_SCROLL_PAGE_BACKWARD : GTK_SCROLL_PAGE_FORWARD;
break;
case GDK_BUTTON_SECONDARY:
case GDK_BUTTON_MIDDLE:
return invert ? GTK_SCROLL_START : GTK_SCROLL_END;
break;
}