diff options
author | Havoc Pennington <hp@redhat.com> | 2001-02-19 20:06:37 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-02-19 20:06:37 +0000 |
commit | 3a99bdf5a75710f1f4cdaf0539fc4290fc862545 (patch) | |
tree | 631a9c1deca5877948ebbcb4235a2729c973c338 /gtk/gtkhscale.c | |
parent | ba46da61a70df8d3471063204e0d51a308a1747c (diff) | |
download | gdk-pixbuf-3a99bdf5a75710f1f4cdaf0539fc4290fc862545.tar.gz |
use the visual scroll steps.
2001-02-16 Havoc Pennington <hp@redhat.com>
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
scroll steps.
* gtk/gtkvscale.c (gtk_vscale_trough_keys): use the visual scroll
steps, and add Ctrl-arrow shortcuts for paging visually as with
HScale, since Page Up and Page Down move logically.
* gtk/gtkenums.h (GtkScrollType): add GTK_SCROLL_STEP_UP,
GTK_SCROLL_STEP_DOWN, etc. for visual scroll directions
* gtk/gtkrange.c (gtk_range_key_press): handle the visual scroll
steps
(gtk_range_scroll): handle the visual steps
* gtk/gtklist.c (gtk_list_scroll_horizontal): handle the up/down
scroll steps
* gtk/gtkhscale.c (gtk_hscale_trough_keys): use the visual scroll
steps, not the logical ones.
* gtk/gtkclist.c (move_focus_row): handle the up/down scroll steps
(scroll_vertical): handle up/down steps
Diffstat (limited to 'gtk/gtkhscale.c')
-rw-r--r-- | gtk/gtkhscale.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkhscale.c b/gtk/gtkhscale.c index 8fe09ef70..e1fae4f3b 100644 --- a/gtk/gtkhscale.c +++ b/gtk/gtkhscale.c @@ -552,16 +552,16 @@ gtk_hscale_trough_keys (GtkRange *range, case GDK_Left: return_val = TRUE; if (key->state & GDK_CONTROL_MASK) - *scroll = GTK_SCROLL_PAGE_BACKWARD; + *scroll = GTK_SCROLL_PAGE_LEFT; else - *scroll = GTK_SCROLL_STEP_BACKWARD; + *scroll = GTK_SCROLL_STEP_LEFT; break; case GDK_Right: return_val = TRUE; if (key->state & GDK_CONTROL_MASK) - *scroll = GTK_SCROLL_PAGE_FORWARD; + *scroll = GTK_SCROLL_PAGE_RIGHT; else - *scroll = GTK_SCROLL_STEP_FORWARD; + *scroll = GTK_SCROLL_STEP_RIGHT; break; case GDK_Home: return_val = TRUE; |