diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2002-12-27 12:19:13 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2002-12-27 12:19:13 +0000 |
commit | 69ff8606df463ec0631d09c8f682205806c99c09 (patch) | |
tree | 6676f2d82b214d51f8dc3722ff0bd3d6495400d5 | |
parent | 0ff9554fc345ef3aff05da62526453e1a60820c5 (diff) | |
download | gtk+-69ff8606df463ec0631d09c8f682205806c99c09.tar.gz |
Fix the fix for #75694.
-rw-r--r-- | gtk/gtktextview.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 5c41ecb66d..1e6930cab0 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -2986,8 +2986,9 @@ gtk_text_view_size_allocate (GtkWidget *widget, text_view->hadjustment->upper = MAX (SCREEN_WIDTH (text_view), text_view->width); gtk_adjustment_changed (text_view->hadjustment); - set_adjustment_clamped (text_view->hadjustment, - text_view->hadjustment->upper - text_view->hadjustment->page_size); + + if (text_view->hadjustment->value > text_view->hadjustment->upper - text_view->hadjustment->page_size) + gtk_adjustment_set_value (text_view->hadjustment, MAX (0, text_view->hadjustment->upper - text_view->hadjustment->page_size)); text_view->vadjustment->page_size = SCREEN_HEIGHT (text_view); text_view->vadjustment->page_increment = SCREEN_HEIGHT (text_view) * 0.9; |