diff options
author | Michael Natterer <mitch@imendio.com> | 2008-08-05 14:25:29 +0000 |
---|---|---|
committer | Michael Natterer <mitch@src.gnome.org> | 2008-08-05 14:25:29 +0000 |
commit | 0affd82480977288c64ff9571b78cd777dfc4ad3 (patch) | |
tree | 6890668134941b4ba8c6da83d8c9d8a7a2ef6284 /gtk/gtkadjustment.c | |
parent | d4984773e87d3bbee47951e3fd7dcfdbbab30d5b (diff) | |
download | gtk+-0affd82480977288c64ff9571b78cd777dfc4ad3.tar.gz |
clamp the value to [lower...upper-page_size] instead of only
2008-08-05 Michael Natterer <mitch@imendio.com>
* gtk/gtkadjustment.c (gtk_adjustment_set_value): clamp the value
to [lower...upper-page_size] instead of only [lower...upper].
* README: add note about this change.
While this fix is correct and should have been there forever, it
has the potential to break some corner cases, however these cases
would set page_size to a value != 0 which suggests they want it
honored.
svn path=/trunk/; revision=21012
Diffstat (limited to 'gtk/gtkadjustment.c')
-rw-r--r-- | gtk/gtkadjustment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkadjustment.c b/gtk/gtkadjustment.c index 1fcbcba180..eb86a663a8 100644 --- a/gtk/gtkadjustment.c +++ b/gtk/gtkadjustment.c @@ -354,7 +354,7 @@ gtk_adjustment_set_value (GtkAdjustment *adjustment, { g_return_if_fail (GTK_IS_ADJUSTMENT (adjustment)); - value = CLAMP (value, adjustment->lower, adjustment->upper); + value = CLAMP (value, adjustment->lower, adjustment->upper - adjustment->page_size); if (value != adjustment->value) { |