diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-02-18 19:20:31 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-02-18 19:20:31 +0000 |
commit | b2b29ea184f60ecbc1c175689bc421b357770953 (patch) | |
tree | 9f939007442638bfadf78fd95f4f83a58154ea58 /gtk/gtkviewport.c | |
parent | 6f58c368d82f86781af97fbdf1792a2ca24f79eb (diff) | |
download | gtk+-b2b29ea184f60ecbc1c175689bc421b357770953.tar.gz |
gtk/gtkclist.c (adjust_adjustments) gtk/gtklayout.c
Mon Feb 18 14:17:59 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkclist.c (adjust_adjustments)
* gtk/gtklayout.c (gtk_layout_size_allocate)
* gtk/gtktextview.c (gtk_text_view_size_allocate)
* gtk/gtktreeview.c (gtk_tree_view_size_allocate)
* gtk/gtkviewport.c (gtk_viewport_size_allocate):
Standardize on a page increment of page minus 1 line
rather than half a page (#51027, Eric Fischer)
* gtk/gtkviewport.c (gtk_viewport_size_allocate):
Change step increment to be 0.1 * page_size height rather than
a fixed 10 pixels.
Diffstat (limited to 'gtk/gtkviewport.c')
-rw-r--r-- | gtk/gtkviewport.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c index 43aaebea3a..7aaf5593e4 100644 --- a/gtk/gtkviewport.c +++ b/gtk/gtkviewport.c @@ -705,12 +705,12 @@ gtk_viewport_size_allocate (GtkWidget *widget, } viewport->hadjustment->page_size = child_allocation.width; - viewport->hadjustment->page_increment = viewport->hadjustment->page_size / 2; - viewport->hadjustment->step_increment = 10; + viewport->hadjustment->step_increment = child_allocation.width * 0.1; + viewport->hadjustment->page_increment = child_allocation.width * 0.9; viewport->vadjustment->page_size = child_allocation.height; - viewport->vadjustment->page_increment = viewport->vadjustment->page_size / 2; - viewport->vadjustment->step_increment = 10; + viewport->vadjustment->step_increment = child_allocation.height * 0.1; + viewport->vadjustment->page_increment = child_allocation.height * 0.9; hval = viewport->hadjustment->value; vval = viewport->vadjustment->value; |