[gtk+] range: switch secondary and middle button on steppers
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] range: switch secondary and middle button on steppers
- Date: Sun, 12 Jul 2015 05:59:08 +0000 (UTC)
commit 6e280d2478c7c592688f931c032972f2df03cdb2
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jul 12 00:23:32 2015 -0400
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.
gtk/gtkrange.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index edc0661..d65364a 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]