Commit 74bc8784 authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

Bug 546754 – 2.13.6 update create rendering issue in the evolution

2008-08-11  Michael Natterer  <mitch@imendio.com>

	Bug 546754 – 2.13.6 update create rendering issue in the evolution
	composer

	* gtk/gtkadjustment.c: instead of CLAMP(), use

	value = MIN (value, upper - page_size);
	value = MAX (value, lower);

	so we don't end up below lower if upper - page_size is smaller
	than lower.


svn path=/trunk/; revision=21080
parent 6f789132
2008-08-11 Michael Natterer <mitch@imendio.com>
Bug 546754 – 2.13.6 update create rendering issue in the evolution
composer
* gtk/gtkadjustment.c: instead of CLAMP(), use
value = MIN (value, upper - page_size);
value = MAX (value, lower);
so we don't end up below lower if upper - page_size is smaller
than lower.
2008-08-11 Matthias Clasen <mclasen@redhat.com>
Bug 546616 – CUPS print backend uses 1.2 API without guards
......
......@@ -359,7 +359,11 @@ gtk_adjustment_set_value (GtkAdjustment *adjustment,
{
g_return_if_fail (GTK_IS_ADJUSTMENT (adjustment));
value = CLAMP (value, adjustment->lower, adjustment->upper - adjustment->page_size);
/* don't use CLAMP() so we don't end up below lower if upper - page_size
* is smaller than lower
*/
value = MIN (value, adjustment->upper - adjustment->page_size);
value = MAX (value, adjustment->lower);
if (value != adjustment->value)
{
......@@ -628,7 +632,11 @@ gtk_adjustment_configure (GtkAdjustment *adjustment,
"page-size", page_size,
NULL);
value = CLAMP (value, lower, upper - page_size);
/* don't use CLAMP() so we don't end up below lower if upper - page_size
* is smaller than lower
*/
value = MIN (value, upper - page_size);
value = MAX (value, lower);
if (value != adjustment->value)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment