gtk2/evo-composer.patch
2008-08-11 21:14:08 +00:00

14 lines
605 B
Diff

diff -up gtk+-2.13.6/gtk/gtkadjustment.c.evo-composer gtk+-2.13.6/gtk/gtkadjustment.c
--- gtk+-2.13.6/gtk/gtkadjustment.c.evo-composer 2008-08-11 17:11:17.000000000 -0400
+++ gtk+-2.13.6/gtk/gtkadjustment.c 2008-08-11 17:11:47.000000000 -0400
@@ -359,7 +359,8 @@ gtk_adjustment_set_value (GtkAdjustment
{
g_return_if_fail (GTK_IS_ADJUSTMENT (adjustment));
- value = CLAMP (value, adjustment->lower, adjustment->upper - adjustment->page_size);
+ value = MIN (value, adjustment->upper - adjustment->page_size);
+ value = MAX (value, adjustment->lower);
if (value != adjustment->value)
{